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.00131/0.00131, allocations: 115.4 kB / 17.06 MB, free: 5.996 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.001381/0.001381, allocations: 196 kB / 18.01 MB, free: 5.07 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.391/1.391, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1756/0.1756, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 63.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3157, allocations: 58.05 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007314/0.3231, allocations: 7.435 MB / 0.5109 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007973/0.3311, allocations: 5.218 MB / 0.516 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007202/0.3318, allocations: 31.09 kB / 0.516 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01242/0.3443, allocations: 5.732 MB / 0.5216 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002165/0.3465, allocations: 0.6922 MB / 0.5223 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.348, allocations: 0.5138 MB / 0.5228 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003829/0.3518, allocations: 2.639 MB / 0.5254 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002064/0.3539, allocations: 1.358 MB / 0.5267 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001565/0.3555, allocations: 0.7767 MB / 0.5274 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001623/0.3571, allocations: 0.9233 MB / 0.5283 GB, free: 9.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003869/0.3575, allocations: 143.4 kB / 0.5285 GB, free: 9.914 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001492/0.359, allocations: 0.6668 MB / 0.5291 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008833/0.3599, allocations: 0.648 MB / 0.5298 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001415/0.3614, allocations: 0.7521 MB / 0.5305 GB, free: 8.688 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0033/0.3647, allocations: 2.212 MB / 0.5327 GB, free: 7.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.3647, allocations: 5.156 kB / 0.5327 GB, free: 7.152 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3647, allocations: 0 / 0.5327 GB, free: 7.152 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.858e-05/0.3648, allocations: 0 / 0.5327 GB, free: 7.152 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.005742/0.3705, allocations: 1.99 MB / 0.5346 GB, free: 5.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3706, allocations: 13.02 kB / 0.5346 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004154/0.371, allocations: 177.5 kB / 0.5348 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000861/0.3719, allocations: 186.2 kB / 0.535 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002181/0.3741, allocations: 1.05 MB / 0.536 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/0.3743, allocations: 182 kB / 0.5362 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002906/0.3746, allocations: 111.3 kB / 0.5363 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003673/0.3783, allocations: 1.863 MB / 0.5381 GB, free: 3.324 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.018e-05/0.3783, allocations: 6.188 kB / 0.5381 GB, free: 3.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/0.3785, allocations: 46.95 kB / 0.5381 GB, free: 3.285 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003117/0.3788, allocations: 129.2 kB / 0.5383 GB, free: 3.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003161/0.382, allocations: 1.598 MB / 0.5398 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00905/0.391, allocations: 5.745 MB / 0.5454 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002681/0.3937, allocations: 1.188 MB / 0.5466 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.3953, allocations: 0.7386 MB / 0.5473 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.629e-05/0.3954, allocations: 17 kB / 0.5473 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001892/0.3973, allocations: 0.9807 MB / 0.5483 GB, free: 10.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=116): time 3.116e-06/0.3973, allocations: 0 / 0.5483 GB, free: 10.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=119): time 0.01076/0.4081, allocations: 4.699 MB / 0.5529 GB, free: 5.617 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.4082, allocations: 127.8 kB / 0.553 GB, free: 5.465 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.4094, allocations: 0.7899 MB / 0.5538 GB, free: 4.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001261/0.4096, allocations: 53.7 kB / 0.5538 GB, free: 4.602 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005566/0.4101, allocations: 0.5088 MB / 0.5543 GB, free: 4.086 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005168/0.4107, allocations: 432.4 kB / 0.5547 GB, free: 3.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004842/0.4112, allocations: 242.8 kB / 0.555 GB, free: 3.418 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002809/0.4114, allocations: 426.7 kB / 0.5554 GB, free: 2.992 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.4126, allocations: 0.6904 MB / 0.556 GB, free: 2.301 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.414, allocations: 0.9686 MB / 0.557 GB, free: 1.238 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002753/0.4168, allocations: 1.678 MB / 0.5586 GB, free: 15.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.4168, allocations: 4 kB / 0.5586 GB, free: 15.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004348/0.4212, allocations: 2.322 MB / 0.5609 GB, free: 13.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.133e-05/0.4213, allocations: 65.67 kB / 0.561 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/0.4213, allocations: 8 kB / 0.561 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001446/0.4228, allocations: 425.4 kB / 0.5614 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008294/0.4236, allocations: 211.7 kB / 0.5616 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009507/0.4331, allocations: 6.257 MB / 0.5677 GB, free: 5.852 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.4342, allocations: 91.89 kB / 0.5678 GB, free: 5.762 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002673/0.4345, allocations: 91.88 kB / 0.5679 GB, free: 5.672 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.0009569/0.4355, allocations: 457.3 kB / 0.5683 GB, free: 5.215 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.4358, allocations: 119.3 kB / 0.5684 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004581/0.4404, allocations: 1.954 MB / 0.5703 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-05/0.4405, allocations: 24 kB / 0.5703 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4405, allocations: 0 / 0.5703 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.4405, allocations: 11.91 kB / 0.5704 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007063/0.4476, allocations: 3.414 MB / 0.5737 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.4476, allocations: 0 / 0.5737 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.4486, allocations: 175.7 kB / 0.5739 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005609/0.4492, allocations: 170.3 kB / 0.574 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.4494, allocations: 35.97 kB / 0.5741 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005066/0.4545, allocations: 4.809 MB / 0.5788 GB, free: 9.918 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4545, allocations: 4.031 kB / 0.5788 GB, free: 9.914 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006019/0.4605, allocations: 2.897 MB / 0.5816 GB, free: 6.945 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008057/0.4613, allocations: 308.3 kB / 0.5819 GB, free: 6.625 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003667/0.4617, allocations: 87.94 kB / 0.582 GB, free: 6.539 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.4628, allocations: 115.8 kB / 0.5821 GB, free: 6.426 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.463, allocations: 72.83 kB / 0.5821 GB, free: 6.355 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.4632, allocations: 43.97 kB / 0.5822 GB, free: 6.312 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009056/0.4641, allocations: 0.5341 MB / 0.5827 GB, free: 5.781 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4641, allocations: 0 / 0.5827 GB, free: 5.781 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001504/0.4656, allocations: 363.9 kB / 0.5831 GB, free: 5.426 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.007766/0.4734, allocations: 3.84 MB / 0.5868 GB, free: 1.641 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004389/0.4778, allocations: 2.325 MB / 0.5891 GB, free: 15.28 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4778, allocations: 4.062 kB / 0.5891 GB, free: 15.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002384/0.4802, allocations: 1.216 MB / 0.5903 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/0.4815, allocations: 254.2 kB / 0.5905 GB, free: 13.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02187/0.5034, allocations: 13.06 MB / 0.6033 GB, free: 340 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.5047, allocations: 1.284 MB / 0.6045 GB, free: 15.02 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008694/0.5056, allocations: 288.6 kB / 0.6048 GB, free: 14.73 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007483/0.5063, allocations: 447.3 kB / 0.6052 GB, free: 14.29 MB / 478.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5063, allocations: 0 / 0.6052 GB, free: 14.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07432/0.5807, allocations: 30.12 MB / 0.6346 GB, free: 352 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.48/20.06, allocations: 14.44 kB / 0.6346 GB, free: 344 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 & /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)