Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM",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.001099/0.001099, allocations: 115.2 kB / 16.62 MB, free: 6.809 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.002166/0.002166, allocations: 189.8 kB / 17.55 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 241.2 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1722/0.1722, allocations: 38.02 MB / 329.4 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 60.59 kB / 398.4 MB, free: 34.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1057, allocations: 58.06 MB / 456.4 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.009778/0.1155, allocations: 8.663 MB / 465.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009034/0.1246, allocations: 5.613 MB / 470.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.126, allocations: 55.62 kB / 470.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01077/0.1368, allocations: 5.849 MB / 476.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002158/0.1389, allocations: 0.6343 MB / 477.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.1405, allocations: 482.9 kB / 477.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00419/0.1447, allocations: 2.69 MB / 480.4 MB, free: 260 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002343/0.1471, allocations: 1.388 MB / 481.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.1487, allocations: 0.7864 MB / 482.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001795/0.1505, allocations: 0.9853 MB / 483.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003818/0.1509, allocations: 144 kB / 483.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001489/0.1524, allocations: 0.706 MB / 484.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008322/0.1532, allocations: 0.6547 MB / 485.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00153/0.1548, allocations: 0.7661 MB / 485.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003455/0.1583, allocations: 2.177 MB / 488 MB, free: 8.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1583, allocations: 4 kB / 488 MB, free: 8.605 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1583, allocations: 0 / 488 MB, free: 8.605 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.807e-05/0.1584, allocations: 4 kB / 488 MB, free: 8.602 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.005459/0.1639, allocations: 1.948 MB / 490 MB, free: 6.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.1639, allocations: 11.89 kB / 490 MB, free: 6.559 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004252/0.1643, allocations: 177.5 kB / 490.2 MB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00089/0.1652, allocations: 187.1 kB / 490.3 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0022/0.1675, allocations: 1.011 MB / 491.4 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/0.1677, allocations: 175.1 kB / 491.5 MB, free: 4.949 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000399/0.1681, allocations: 115.8 kB / 491.6 MB, free: 4.836 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004076/0.1722, allocations: 1.867 MB / 493.5 MB, free: 2.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.195e-05/0.1723, allocations: 4 kB / 493.5 MB, free: 2.891 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/0.1724, allocations: 39.94 kB / 493.5 MB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002957/0.1727, allocations: 129.9 kB / 493.7 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003038/0.1758, allocations: 1.608 MB / 495.3 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008911/0.1847, allocations: 5.747 MB / 0.4893 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/0.1871, allocations: 1.206 MB / 0.4905 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/0.1885, allocations: 0.7425 MB / 0.4912 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.732e-05/0.1886, allocations: 13 kB / 0.4912 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001722/0.1904, allocations: 0.9767 MB / 0.4922 GB, free: 8.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.637e-06/0.1904, allocations: 0 / 0.4922 GB, free: 8.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.009172/0.1995, allocations: 4.669 MB / 0.4967 GB, free: 3.387 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.181e-05/0.1996, allocations: 127.8 kB / 0.4968 GB, free: 3.238 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009812/0.2006, allocations: 0.7897 MB / 0.4976 GB, free: 2.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.2008, allocations: 53.7 kB / 0.4977 GB, free: 2.379 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003941/0.2012, allocations: 0.5075 MB / 0.4982 GB, free: 1.863 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003629/0.2015, allocations: 406.3 kB / 0.4985 GB, free: 1.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003744/0.2019, allocations: 246.8 kB / 0.4988 GB, free: 1.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.2021, allocations: 426.7 kB / 0.4992 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009503/0.2031, allocations: 0.6865 MB / 0.4999 GB, free: 100 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1859/0.3889, allocations: 0.962 MB / 0.5008 GB, free: 56.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.3909, allocations: 1.682 MB / 0.5024 GB, free: 56.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.3909, allocations: 2.344 kB / 0.5024 GB, free: 56.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003493/0.3944, allocations: 2.321 MB / 0.5047 GB, free: 55.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.315e-05/0.3945, allocations: 63.5 kB / 0.5048 GB, free: 55.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.3945, allocations: 7.656 kB / 0.5048 GB, free: 55.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/0.3957, allocations: 419.1 kB / 0.5052 GB, free: 55.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007576/0.3965, allocations: 218.2 kB / 0.5054 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008567/0.4051, allocations: 6.235 MB / 0.5115 GB, free: 50.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.4062, allocations: 97.02 kB / 0.5116 GB, free: 50.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.4063, allocations: 86.97 kB / 0.5116 GB, free: 50.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 115 * Array equations: 3 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0008374/0.4072, allocations: 455.9 kB / 0.5121 GB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/0.4074, allocations: 106.2 kB / 0.5122 GB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003955/0.4114, allocations: 1.967 MB / 0.5141 GB, free: 49.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.106e-05/0.4114, allocations: 29.34 kB / 0.5141 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.4114, allocations: 2.156 kB / 0.5141 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.4115, allocations: 5.344 kB / 0.5141 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006072/0.4175, allocations: 3.425 MB / 0.5175 GB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.4176, allocations: 1.469 kB / 0.5175 GB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00089/0.4185, allocations: 169.5 kB / 0.5176 GB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005378/0.419, allocations: 165.3 kB / 0.5178 GB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.4191, allocations: 40.22 kB / 0.5178 GB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003131/0.4223, allocations: 4.812 MB / 0.5225 GB, free: 43.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4223, allocations: 1.188 kB / 0.5225 GB, free: 43.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004954/0.4272, allocations: 2.881 MB / 0.5254 GB, free: 42.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005116/0.4278, allocations: 313.7 kB / 0.5257 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002374/0.428, allocations: 86.66 kB / 0.5257 GB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008755/0.4289, allocations: 112.2 kB / 0.5258 GB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.4291, allocations: 72.89 kB / 0.5259 GB, free: 42.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.845e-05/0.4292, allocations: 44.33 kB / 0.526 GB, free: 42.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007198/0.43, allocations: 0.5424 MB / 0.5265 GB, free: 42.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.43, allocations: 0 / 0.5265 GB, free: 42.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001316/0.4313, allocations: 369.4 kB / 0.5268 GB, free: 42.05 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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,3,100.0%), (2,1,100.0%), (2,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.005634/0.4369, allocations: 3.838 MB / 0.5306 GB, free: 39.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004738/0.4417, allocations: 2.966 MB / 0.5335 GB, free: 36.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4417, allocations: 0 / 0.5335 GB, free: 36.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001755/0.4435, allocations: 1.224 MB / 0.5347 GB, free: 35.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.4447, allocations: 260 kB / 0.5349 GB, free: 35.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/0.4611, allocations: 13.83 MB / 0.5484 GB, free: 21.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006259/0.4618, allocations: 1.289 MB / 0.5497 GB, free: 19.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007598/0.4626, allocations: 296.6 kB / 0.55 GB, free: 19.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004979/0.4631, allocations: 443.3 kB / 0.5504 GB, free: 19.08 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4631, allocations: 0 / 0.5504 GB, free: 19.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05319/0.5163, allocations: 29.35 MB / 0.5791 GB, free: 5.973 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/0.5165, allocations: 266.9 kB / 0.5793 GB, free: 5.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.527/3.044, allocations: 0 / 0.5793 GB, free: 5.617 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1)