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.001604/0.001604, allocations: 107.3 kB / 17.06 MB, free: 6.016 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.001529/0.001529, allocations: 192 kB / 18 MB, free: 5.102 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.433/1.433, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1894/0.1894, allocations: 38.02 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 63.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3288, allocations: 58.05 MB / 0.5036 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.008584/0.3375, allocations: 7.432 MB / 0.5109 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009971/0.3475, allocations: 5.222 MB / 0.516 GB, free: 14.74 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001685/0.3492, allocations: 30.97 kB / 0.516 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01331/0.3626, allocations: 5.741 MB / 0.5216 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002232/0.3649, allocations: 0.6865 MB / 0.5223 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001707/0.3666, allocations: 0.5194 MB / 0.5228 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003904/0.3705, allocations: 2.634 MB / 0.5254 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001845/0.3724, allocations: 1.352 MB / 0.5267 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.3738, allocations: 0.7785 MB / 0.5274 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.375, allocations: 0.9261 MB / 0.5283 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002119/0.3752, allocations: 144.3 kB / 0.5285 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001269/0.3765, allocations: 0.6617 MB / 0.5291 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000692/0.3772, allocations: 0.6533 MB / 0.5298 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008645/0.3781, allocations: 0.7482 MB / 0.5305 GB, free: 8.738 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002521/0.3806, allocations: 2.215 MB / 0.5327 GB, free: 7.203 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.3806, allocations: 1.25 kB / 0.5327 GB, free: 7.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3806, allocations: 0 / 0.5327 GB, free: 7.203 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.179e-05/0.3807, allocations: 0 / 0.5327 GB, free: 7.203 MB / 398.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.004134/0.3848, allocations: 1.996 MB / 0.5346 GB, free: 5.719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3848, allocations: 12.8 kB / 0.5346 GB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002606/0.3851, allocations: 178.7 kB / 0.5348 GB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006666/0.3858, allocations: 181.6 kB / 0.535 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001876/0.3877, allocations: 1.049 MB / 0.536 GB, free: 4.699 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001894/0.3879, allocations: 185.2 kB / 0.5362 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.3881, allocations: 111.2 kB / 0.5363 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003324/0.3914, allocations: 1.869 MB / 0.5381 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/0.3915, allocations: 1.375 kB / 0.5381 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.3916, allocations: 46.92 kB / 0.5381 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002919/0.3919, allocations: 124.5 kB / 0.5383 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002944/0.3949, allocations: 1.598 MB / 0.5398 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008811/0.4037, allocations: 5.735 MB / 0.5454 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/0.4065, allocations: 1.199 MB / 0.5466 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001648/0.4082, allocations: 0.7425 MB / 0.5473 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.129e-05/0.4083, allocations: 17.14 kB / 0.5473 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002127/0.4104, allocations: 0.9728 MB / 0.5483 GB, free: 10.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=116): time 3.827e-06/0.4104, allocations: 0 / 0.5483 GB, free: 10.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=119): time 0.01102/0.4215, allocations: 4.703 MB / 0.5529 GB, free: 5.602 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.4216, allocations: 127.8 kB / 0.553 GB, free: 5.449 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.4228, allocations: 0.786 MB / 0.5538 GB, free: 4.648 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002129/0.423, allocations: 61.67 kB / 0.5538 GB, free: 4.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005313/0.4236, allocations: 0.5088 MB / 0.5543 GB, free: 4.066 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000479/0.424, allocations: 428.4 kB / 0.5547 GB, free: 3.645 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004518/0.4245, allocations: 250.8 kB / 0.555 GB, free: 3.395 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002442/0.4247, allocations: 418.7 kB / 0.5554 GB, free: 2.977 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.426, allocations: 0.6943 MB / 0.5561 GB, free: 2.281 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.4274, allocations: 0.9608 MB / 0.557 GB, free: 1.227 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002504/0.4299, allocations: 1.682 MB / 0.5586 GB, free: 15.44 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.4299, allocations: 4 kB / 0.5586 GB, free: 15.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004362/0.4343, allocations: 2.322 MB / 0.5609 GB, free: 13.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.271e-05/0.4344, allocations: 69.67 kB / 0.561 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/0.4344, allocations: 4 kB / 0.561 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.4357, allocations: 417.1 kB / 0.5614 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009274/0.4367, allocations: 227.6 kB / 0.5616 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009225/0.4459, allocations: 6.245 MB / 0.5677 GB, free: 5.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/0.4472, allocations: 103.9 kB / 0.5678 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/0.4474, allocations: 79.89 kB / 0.5679 GB, free: 5.66 MB / 430.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.00105/0.4485, allocations: 461.3 kB / 0.5683 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003317/0.4488, allocations: 115.3 kB / 0.5684 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004844/0.4537, allocations: 1.954 MB / 0.5703 GB, free: 3.078 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-05/0.4537, allocations: 31.97 kB / 0.5704 GB, free: 3.047 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.4538, allocations: 8 kB / 0.5704 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.4538, allocations: 7.922 kB / 0.5704 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007065/0.4608, allocations: 3.414 MB / 0.5737 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.4609, allocations: 4.031 kB / 0.5737 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.4619, allocations: 167.8 kB / 0.5739 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005672/0.4625, allocations: 166.3 kB / 0.574 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.4626, allocations: 39.95 kB / 0.5741 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004777/0.4674, allocations: 4.809 MB / 0.5788 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.4674, allocations: 4 kB / 0.5788 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00652/0.474, allocations: 2.889 MB / 0.5816 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006393/0.4746, allocations: 320.2 kB / 0.5819 GB, free: 6.602 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000271/0.4749, allocations: 87.94 kB / 0.582 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009515/0.4759, allocations: 103.8 kB / 0.5821 GB, free: 6.414 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/0.4761, allocations: 84.83 kB / 0.5821 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.4762, allocations: 39.97 kB / 0.5822 GB, free: 6.293 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007942/0.477, allocations: 0.538 MB / 0.5827 GB, free: 5.758 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.477, allocations: 0 / 0.5827 GB, free: 5.758 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001287/0.4783, allocations: 359.9 kB / 0.5831 GB, free: 5.406 MB / 446.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.007747/0.4861, allocations: 3.841 MB / 0.5868 GB, free: 1.621 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004637/0.4907, allocations: 2.32 MB / 0.5891 GB, free: 15.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.4908, allocations: 1.375 kB / 0.5891 GB, free: 15.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002645/0.4934, allocations: 1.224 MB / 0.5903 GB, free: 14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.4949, allocations: 242.8 kB / 0.5905 GB, free: 13.77 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02362/0.5186, allocations: 13.07 MB / 0.6033 GB, free: 316 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.5198, allocations: 1.277 MB / 0.6045 GB, free: 15 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009217/0.5207, allocations: 292.6 kB / 0.6048 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007842/0.5215, allocations: 443.3 kB / 0.6052 GB, free: 14.28 MB / 478.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5215, allocations: 0 / 0.6052 GB, free: 14.28 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07508/0.5966, allocations: 30.12 MB / 0.6346 GB, free: 348 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.84/21.44, allocations: 11.72 kB / 0.6346 GB, free: 336 kB / 494.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)