Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 108.1 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 186.5 kB / 17.42 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1659/0.1659, allocations: 37.98 MB / 308.6 MB, free: 6.246 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 75.02 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2209, allocations: 55.24 MB / 430 MB, free: 19.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006651/0.2276, allocations: 6.769 MB / 436.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006221/0.2338, allocations: 4.951 MB / 441.7 MB, free: 8.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007026/0.2346, allocations: 43.75 kB / 441.7 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007001/0.2416, allocations: 4.811 MB / 446.5 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.2427, allocations: 414.4 kB / 446.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006323/0.2433, allocations: 251.7 kB / 447.2 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001745/0.2451, allocations: 2.288 MB / 449.5 MB, free: 220 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000861/0.2459, allocations: 0.618 MB / 450.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006381/0.2466, allocations: 406.5 kB / 450.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007539/0.2474, allocations: 0.5216 MB / 451 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.2475, allocations: 40 kB / 451.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000294/0.2478, allocations: 123.8 kB / 451.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000366/0.2482, allocations: 299.2 kB / 451.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003702/0.2485, allocations: 362.2 kB / 451.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000935/0.2495, allocations: 1.008 MB / 452.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2495, allocations: 0 / 452.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.2495, allocations: 0 / 452.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.2495, allocations: 0 / 452.8 MB, free: 12.85 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002122/0.2517, allocations: 1.025 MB / 453.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.2517, allocations: 12.02 kB / 453.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001248/0.2518, allocations: 106.7 kB / 454 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004427/0.2523, allocations: 104 kB / 454.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.2534, allocations: 0.6035 MB / 454.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.424e-05/0.2535, allocations: 75.02 kB / 454.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.2536, allocations: 63.98 kB / 454.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.2549, allocations: 0.8021 MB / 455.6 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.2549, allocations: 7.906 kB / 455.6 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.996e-05/0.255, allocations: 27.98 kB / 455.6 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001591/0.2551, allocations: 49.28 kB / 455.7 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009468/0.2561, allocations: 0.5906 MB / 456.3 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003988/0.2601, allocations: 2.935 MB / 459.2 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007807/0.2609, allocations: 426.2 kB / 459.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003198/0.2612, allocations: 226.3 kB / 459.9 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.2613, allocations: 8.312 kB / 459.9 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004951/0.2618, allocations: 347.4 kB / 460.2 MB, free: 5.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.434e-06/0.2618, allocations: 0 / 460.2 MB, free: 5.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003083/0.2649, allocations: 2.047 MB / 462.2 MB, free: 2.961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.631e-05/0.265, allocations: 144.5 kB / 462.4 MB, free: 2.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005004/0.2655, allocations: 445.8 kB / 462.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.113e-05/0.2655, allocations: 33.7 kB / 462.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/0.2658, allocations: 331.8 kB / 463.2 MB, free: 1.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.2659, allocations: 161.8 kB / 463.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/0.2661, allocations: 114.2 kB / 463.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.2663, allocations: 366.8 kB / 463.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.2667, allocations: 225.2 kB / 464 MB, free: 1.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/0.2671, allocations: 397.7 kB / 464.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00266/0.2698, allocations: 1.335 MB / 465.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2698, allocations: 0 / 465.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001687/0.2715, allocations: 0.9709 MB / 466.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.862e-05/0.2716, allocations: 33.7 kB / 466.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.2716, allocations: 8 kB / 466.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008874/0.2725, allocations: 301.5 kB / 467.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008262/0.2733, allocations: 175.7 kB / 467.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005757/0.2791, allocations: 4.833 MB / 472.1 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003555/0.2794, allocations: 31.89 kB / 472.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/0.2795, allocations: 31.97 kB / 472.1 MB, free: 8.551 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0003839/0.2799, allocations: 295.3 kB / 472.4 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/0.28, allocations: 47.44 kB / 472.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.2811, allocations: 0.8207 MB / 473.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2811, allocations: 4 kB / 473.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.2811, allocations: 0 / 473.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.2811, allocations: 7.984 kB / 473.3 MB, free: 7.309 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.2834, allocations: 1.683 MB / 475 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.2834, allocations: 8.047 kB / 475 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.2846, allocations: 195.8 kB / 475.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002189/0.2848, allocations: 74.52 kB / 475.2 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.049e-05/0.2848, allocations: 16 kB / 475.3 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002946/0.2878, allocations: 3.953 MB / 479.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2878, allocations: 0 / 479.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.2893, allocations: 1.126 MB / 480.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.2895, allocations: 168.5 kB / 480.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.696e-05/0.2896, allocations: 27.84 kB / 480.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.2899, allocations: 15.98 kB / 480.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.29, allocations: 39.83 kB / 480.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.29, allocations: 16 kB / 480.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003965/0.2904, allocations: 315.1 kB / 480.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2904, allocations: 0 / 480.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007864/0.2912, allocations: 164 kB / 481.1 MB, free: 14.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001838/0.2931, allocations: 1.672 MB / 482.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.2952, allocations: 0.976 MB / 483.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.2953, allocations: 8.062 kB / 483.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009985/0.2963, allocations: 0.636 MB / 484.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008227/0.2971, allocations: 126.5 kB / 484.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009922/0.3071, allocations: 6.463 MB / 491 MB, free: 4.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006574/0.3077, allocations: 0.9838 MB / 491.9 MB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003951/0.3081, allocations: 108.7 kB / 492 MB, free: 3.469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003003/0.3085, allocations: 223.4 kB / 492.3 MB, free: 3.25 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3085, allocations: 0 / 492.3 MB, free: 3.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02805/0.3365, allocations: 13.4 MB / 0.4938 GB, free: 5.836 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/0.3367, allocations: 224.9 kB / 0.494 GB, free: 5.578 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.094/2.431, allocations: 0 / 0.494 GB, free: 5.578 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)