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.001461/0.001461, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.001795/0.001795, allocations: 200 kB / 18.01 MB, free: 5.066 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.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1801/0.1801, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.91 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.335, allocations: 58.06 MB / 0.5036 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007703/0.3428, allocations: 7.435 MB / 0.5109 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007578/0.3504, allocations: 5.221 MB / 0.516 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008371/0.3513, allocations: 30.62 kB / 0.516 GB, free: 14.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01205/0.3633, allocations: 5.737 MB / 0.5216 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002311/0.3657, allocations: 0.6992 MB / 0.5223 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001559/0.3672, allocations: 0.5208 MB / 0.5228 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004301/0.3716, allocations: 2.636 MB / 0.5254 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002364/0.3739, allocations: 1.348 MB / 0.5267 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001725/0.3757, allocations: 0.7978 MB / 0.5275 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001797/0.3775, allocations: 0.924 MB / 0.5284 GB, free: 9.918 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004339/0.3779, allocations: 145.8 kB / 0.5285 GB, free: 9.918 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001735/0.3797, allocations: 0.6681 MB / 0.5292 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009732/0.3807, allocations: 0.6529 MB / 0.5298 GB, free: 9.211 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.3824, allocations: 0.756 MB / 0.5305 GB, free: 8.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003737/0.3862, allocations: 2.208 MB / 0.5327 GB, free: 7.152 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3862, allocations: 0 / 0.5327 GB, free: 7.152 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3862, allocations: 5.406 kB / 0.5327 GB, free: 7.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.604e-05/0.3862, allocations: 0 / 0.5327 GB, free: 7.148 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.004764/0.391, allocations: 1.99 MB / 0.5346 GB, free: 5.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.3911, allocations: 13.36 kB / 0.5347 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002455/0.3913, allocations: 178.2 kB / 0.5348 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007054/0.392, allocations: 185.1 kB / 0.535 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002134/0.3942, allocations: 1.046 MB / 0.536 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.3944, allocations: 184.5 kB / 0.5362 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002306/0.3946, allocations: 111.6 kB / 0.5363 GB, free: 4.469 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003429/0.3981, allocations: 1.869 MB / 0.5381 GB, free: 3.316 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.739e-05/0.3981, allocations: 5.125 kB / 0.5381 GB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001459/0.3983, allocations: 46.62 kB / 0.5382 GB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003466/0.3986, allocations: 128.5 kB / 0.5383 GB, free: 3.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002956/0.4016, allocations: 1.591 MB / 0.5399 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008696/0.4103, allocations: 5.738 MB / 0.5455 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.4128, allocations: 1.195 MB / 0.5466 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.4143, allocations: 0.7464 MB / 0.5474 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.126e-05/0.4143, allocations: 17.14 kB / 0.5474 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001773/0.4161, allocations: 0.9767 MB / 0.5483 GB, free: 10.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=116): time 3.176e-06/0.4161, allocations: 4 kB / 0.5483 GB, free: 10.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=119): time 0.01016/0.4263, allocations: 4.695 MB / 0.5529 GB, free: 5.555 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.255e-05/0.4264, allocations: 127.8 kB / 0.553 GB, free: 5.402 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.4274, allocations: 0.786 MB / 0.5538 GB, free: 4.602 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001149/0.4276, allocations: 57.69 kB / 0.5539 GB, free: 4.539 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004398/0.428, allocations: 0.5127 MB / 0.5544 GB, free: 4.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004023/0.4284, allocations: 428.4 kB / 0.5548 GB, free: 3.598 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003886/0.4288, allocations: 250.8 kB / 0.555 GB, free: 3.348 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.429, allocations: 418.7 kB / 0.5554 GB, free: 2.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.4301, allocations: 0.6943 MB / 0.5561 GB, free: 2.234 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.4313, allocations: 0.9607 MB / 0.557 GB, free: 1.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002276/0.4336, allocations: 1.682 MB / 0.5587 GB, free: 15.39 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.4336, allocations: 4 kB / 0.5587 GB, free: 15.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003949/0.4376, allocations: 2.326 MB / 0.5609 GB, free: 13.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.434e-05/0.4377, allocations: 65.67 kB / 0.561 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/0.4377, allocations: 11.94 kB / 0.561 GB, free: 12.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.439, allocations: 417.4 kB / 0.5614 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008763/0.4399, allocations: 215.7 kB / 0.5616 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007984/0.4479, allocations: 6.253 MB / 0.5677 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/0.4491, allocations: 91.91 kB / 0.5678 GB, free: 5.695 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/0.4493, allocations: 87.88 kB / 0.5679 GB, free: 5.609 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.0007968/0.4501, allocations: 461.3 kB / 0.5683 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.4504, allocations: 111.3 kB / 0.5684 GB, free: 5.039 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003987/0.4544, allocations: 1.954 MB / 0.5704 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.066e-05/0.4544, allocations: 27.98 kB / 0.5704 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4544, allocations: 0 / 0.5704 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.4545, allocations: 7.922 kB / 0.5704 GB, free: 2.996 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006486/0.4609, allocations: 3.422 MB / 0.5737 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/0.461, allocations: 0 / 0.5737 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.462, allocations: 175.7 kB / 0.5739 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000514/0.4625, allocations: 162.3 kB / 0.5741 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.4627, allocations: 44.02 kB / 0.5741 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004097/0.4668, allocations: 4.805 MB / 0.5788 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.4668, allocations: 4.031 kB / 0.5788 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005585/0.4724, allocations: 2.889 MB / 0.5816 GB, free: 6.891 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006889/0.4731, allocations: 316.2 kB / 0.5819 GB, free: 6.562 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002491/0.4734, allocations: 87.94 kB / 0.582 GB, free: 6.477 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009723/0.4743, allocations: 107.8 kB / 0.5821 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.4746, allocations: 80.83 kB / 0.5822 GB, free: 6.293 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.422e-05/0.4747, allocations: 43.97 kB / 0.5822 GB, free: 6.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006734/0.4753, allocations: 0.5341 MB / 0.5827 GB, free: 5.719 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4753, allocations: 0 / 0.5827 GB, free: 5.719 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001385/0.4767, allocations: 355.9 kB / 0.5831 GB, free: 5.371 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.006777/0.4835, allocations: 3.856 MB / 0.5868 GB, free: 1.574 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004144/0.4877, allocations: 2.325 MB / 0.5891 GB, free: 15.21 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4877, allocations: 0 / 0.5891 GB, free: 15.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002248/0.49, allocations: 1.228 MB / 0.5903 GB, free: 13.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.4913, allocations: 234.4 kB / 0.5905 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01863/0.5099, allocations: 13.07 MB / 0.6033 GB, free: 272 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008728/0.5108, allocations: 1.285 MB / 0.6046 GB, free: 14.95 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008395/0.5117, allocations: 292.6 kB / 0.6048 GB, free: 14.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006522/0.5124, allocations: 447.3 kB / 0.6053 GB, free: 14.22 MB / 478.1 MB Notification: Performance of SimCode: time 9.11e-07/0.5124, allocations: 0 / 0.6053 GB, free: 14.22 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06443/0.5768, allocations: 30.11 MB / 0.6347 GB, free: 292 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.59/20.17, allocations: 18.17 kB / 0.6347 GB, free: 280 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)