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.001086/0.001086, allocations: 107.7 kB / 16.92 MB, free: 5.746 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.001155/0.001156, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.346/1.346, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.174/0.174, allocations: 38.02 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 61.91 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1045, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.009473/0.114, allocations: 7.418 MB / 464.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.1243, allocations: 5.233 MB / 469.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.1254, allocations: 27.88 kB / 469.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01669/0.1421, allocations: 5.727 MB / 475.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003316/0.1455, allocations: 0.6961 MB / 476.1 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.148, allocations: 0.5136 MB / 476.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005845/0.1538, allocations: 2.639 MB / 479.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002854/0.1567, allocations: 1.365 MB / 480.6 MB, free: 244 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.1586, allocations: 0.7632 MB / 481.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00211/0.1607, allocations: 0.9189 MB / 482.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005345/0.1613, allocations: 144 kB / 482.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002386/0.1637, allocations: 0.706 MB / 483.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001204/0.1649, allocations: 0.6586 MB / 483.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001773/0.1667, allocations: 0.7544 MB / 484.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003749/0.1705, allocations: 2.173 MB / 486.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1705, allocations: 3.938 kB / 486.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1705, allocations: 4 kB / 486.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.496e-05/0.1706, allocations: 0 / 486.7 MB, free: 10.1 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.008034/0.1787, allocations: 1.948 MB / 488.7 MB, free: 8.066 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.1788, allocations: 15.83 kB / 488.7 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003953/0.1792, allocations: 173.5 kB / 488.8 MB, free: 7.871 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001136/0.1803, allocations: 183.2 kB / 489 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003078/0.1834, allocations: 1.01 MB / 490 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002927/0.1837, allocations: 183.1 kB / 490.2 MB, free: 6.438 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003565/0.1841, allocations: 104 kB / 490.3 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005678/0.1898, allocations: 1.867 MB / 492.2 MB, free: 4.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.026e-05/0.1899, allocations: 7.938 kB / 492.2 MB, free: 4.387 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002165/0.1901, allocations: 40 kB / 492.2 MB, free: 4.348 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005484/0.1907, allocations: 129.9 kB / 492.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005292/0.196, allocations: 1.6 MB / 494 MB, free: 2.621 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.2074, allocations: 5.755 MB / 499.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002563/0.21, allocations: 1.199 MB / 0.4892 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.2115, allocations: 0.7386 MB / 0.4899 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.805e-05/0.2116, allocations: 16.98 kB / 0.4899 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001758/0.2133, allocations: 0.9805 MB / 0.4909 GB, free: 9.695 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.226e-06/0.2134, allocations: 0 / 0.4909 GB, free: 9.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.01029/0.2237, allocations: 4.669 MB / 0.4954 GB, free: 4.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/0.2238, allocations: 123.8 kB / 0.4955 GB, free: 4.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/0.225, allocations: 0.782 MB / 0.4963 GB, free: 3.957 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.2251, allocations: 57.69 kB / 0.4964 GB, free: 3.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004725/0.2256, allocations: 0.5076 MB / 0.4969 GB, free: 3.379 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004003/0.226, allocations: 406.3 kB / 0.4972 GB, free: 2.977 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004524/0.2264, allocations: 246.7 kB / 0.4975 GB, free: 2.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002498/0.2267, allocations: 418.7 kB / 0.4979 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.2278, allocations: 0.6904 MB / 0.4985 GB, free: 1.617 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.2291, allocations: 0.9686 MB / 0.4995 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1906/0.4197, allocations: 1.68 MB / 0.5011 GB, free: 56.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.4197, allocations: 3.25 kB / 0.5011 GB, free: 56.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003848/0.4236, allocations: 2.319 MB / 0.5034 GB, free: 55.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.773e-05/0.4237, allocations: 62.42 kB / 0.5035 GB, free: 55.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.4237, allocations: 8.75 kB / 0.5035 GB, free: 55.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.425, allocations: 420.6 kB / 0.5039 GB, free: 55.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007977/0.4258, allocations: 217.2 kB / 0.5041 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007079/0.4329, allocations: 6.235 MB / 0.5102 GB, free: 50.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000957/0.4339, allocations: 102.2 kB / 0.5103 GB, free: 50.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.434, allocations: 91.08 kB / 0.5104 GB, free: 50.94 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.0006625/0.4347, allocations: 454.5 kB / 0.5108 GB, free: 50.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/0.4349, allocations: 105.1 kB / 0.5109 GB, free: 50.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003988/0.4389, allocations: 1.964 MB / 0.5128 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.041e-05/0.439, allocations: 28.64 kB / 0.5128 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.439, allocations: 2.594 kB / 0.5128 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.439, allocations: 9.719 kB / 0.5128 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005773/0.4448, allocations: 3.424 MB / 0.5162 GB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.4448, allocations: 1.062 kB / 0.5162 GB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009392/0.4457, allocations: 171.6 kB / 0.5164 GB, free: 48.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004955/0.4463, allocations: 161.8 kB / 0.5165 GB, free: 48.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.023e-05/0.4464, allocations: 48.12 kB / 0.5166 GB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002935/0.4493, allocations: 4.807 MB / 0.5212 GB, free: 43.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4493, allocations: 1.188 kB / 0.5212 GB, free: 43.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004869/0.4542, allocations: 2.887 MB / 0.5241 GB, free: 42.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003942/0.4546, allocations: 305.5 kB / 0.5244 GB, free: 42.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002119/0.4548, allocations: 86.61 kB / 0.5244 GB, free: 42.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008937/0.4557, allocations: 116.6 kB / 0.5246 GB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.4559, allocations: 85.38 kB / 0.5246 GB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.954e-05/0.456, allocations: 39.08 kB / 0.5247 GB, free: 42.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006201/0.4566, allocations: 0.5366 MB / 0.5252 GB, free: 42.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4566, allocations: 0 / 0.5252 GB, free: 42.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001106/0.4577, allocations: 358.9 kB / 0.5255 GB, free: 42.1 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.005617/0.4634, allocations: 3.845 MB / 0.5293 GB, free: 39.87 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004466/0.4678, allocations: 2.977 MB / 0.5322 GB, free: 37.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4679, allocations: 0 / 0.5322 GB, free: 37.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001872/0.4697, allocations: 1.212 MB / 0.5334 GB, free: 36.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.4709, allocations: 244.1 kB / 0.5336 GB, free: 36.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/0.4851, allocations: 13.4 MB / 0.5467 GB, free: 22.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005688/0.4857, allocations: 1.284 MB / 0.548 GB, free: 21.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007565/0.4864, allocations: 296.6 kB / 0.5482 GB, free: 20.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004889/0.4869, allocations: 439.2 kB / 0.5487 GB, free: 20.52 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4869, allocations: 0 / 0.5487 GB, free: 20.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08643/0.5734, allocations: 29.53 MB / 0.5775 GB, free: 7.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.44, allocations: 21.56 kB / 0.5775 GB, free: 7.195 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1)