Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",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.0011/0.0011, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001019/0.001019, allocations: 196 kB / 18 MB, free: 5.105 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.402/1.402, 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-master/package.mo): time 0.1841/0.1841, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 55.91 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3543, allocations: 58.06 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008469/0.3628, allocations: 7.117 MB / 0.5106 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008735/0.3716, allocations: 5.084 MB / 0.5155 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00145/0.3731, allocations: 27.47 kB / 0.5156 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01665/0.3898, allocations: 5.72 MB / 0.5211 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002197/0.392, allocations: 0.5125 MB / 0.5216 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002241/0.3943, allocations: 496.3 kB / 0.5221 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004892/0.3992, allocations: 2.248 MB / 0.5243 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00198/0.4012, allocations: 0.9334 MB / 0.5252 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001854/0.4031, allocations: 0.6163 MB / 0.5258 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001814/0.405, allocations: 0.7164 MB / 0.5265 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004569/0.4054, allocations: 100.8 kB / 0.5266 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009845/0.4064, allocations: 256.4 kB / 0.5269 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007429/0.4072, allocations: 498 kB / 0.5273 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001477/0.4087, allocations: 0.5846 MB / 0.5279 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002735/0.4114, allocations: 1.539 MB / 0.5294 GB, free: 9.254 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.4115, allocations: 0 / 0.5294 GB, free: 9.254 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4115, allocations: 0 / 0.5294 GB, free: 9.254 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.028e-05/0.4115, allocations: 3.938 kB / 0.5294 GB, free: 9.25 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.004868/0.4164, allocations: 1.459 MB / 0.5308 GB, free: 8.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.273e-05/0.4165, allocations: 13.48 kB / 0.5309 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004184/0.4169, allocations: 136 kB / 0.531 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001102/0.418, allocations: 154.8 kB / 0.5311 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002326/0.4204, allocations: 0.9093 MB / 0.532 GB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.693e-05/0.4205, allocations: 62.08 kB / 0.5321 GB, free: 7.246 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003014/0.4208, allocations: 88.62 kB / 0.5322 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.4233, allocations: 1.233 MB / 0.5334 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.156e-05/0.4233, allocations: 6.656 kB / 0.5334 GB, free: 6.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.4234, allocations: 36.02 kB / 0.5334 GB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002535/0.4237, allocations: 96 kB / 0.5335 GB, free: 6.348 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.4258, allocations: 0.9986 MB / 0.5345 GB, free: 5.871 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008927/0.4347, allocations: 4.887 MB / 0.5393 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.436, allocations: 0.6494 MB / 0.5399 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006573/0.4367, allocations: 359.3 kB / 0.5402 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.221e-05/0.4368, allocations: 15.38 kB / 0.5402 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008043/0.4376, allocations: 444.7 kB / 0.5407 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 5.37e-06/0.4376, allocations: 0 / 0.5407 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.00564/0.4433, allocations: 2.717 MB / 0.5433 GB, free: 15.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.275e-05/0.4434, allocations: 111.1 kB / 0.5434 GB, free: 15.03 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.4445, allocations: 0.7567 MB / 0.5442 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.702e-05/0.4446, allocations: 37.64 kB / 0.5442 GB, free: 14.49 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003676/0.445, allocations: 0.4948 MB / 0.5447 GB, free: 13.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.4452, allocations: 244.5 kB / 0.5449 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002878/0.4455, allocations: 178.5 kB / 0.5451 GB, free: 13.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.4457, allocations: 402.7 kB / 0.5455 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005789/0.4462, allocations: 373.8 kB / 0.5458 GB, free: 12.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007516/0.447, allocations: 0.6539 MB / 0.5465 GB, free: 12.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001372/0.4484, allocations: 1.053 MB / 0.5475 GB, free: 10.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.4484, allocations: 0 / 0.5475 GB, free: 10.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003189/0.4516, allocations: 1.623 MB / 0.5491 GB, free: 9.184 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.4516, allocations: 19.92 kB / 0.5491 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.4517, allocations: 8 kB / 0.5491 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/0.4532, allocations: 497.7 kB / 0.5496 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006174/0.4538, allocations: 167.7 kB / 0.5497 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00981/0.4636, allocations: 7.078 MB / 0.5567 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008633/0.4645, allocations: 47.94 kB / 0.5567 GB, free: 1.094 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.4647, allocations: 47.98 kB / 0.5567 GB, free: 1.047 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * 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 {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.000621/0.4653, allocations: 353.4 kB / 0.5571 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.4655, allocations: 86.97 kB / 0.5572 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001894/0.4674, allocations: 1.11 MB / 0.5582 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.4674, allocations: 8 kB / 0.5583 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4674, allocations: 0 / 0.5583 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.4675, allocations: 7.969 kB / 0.5583 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004074/0.4715, allocations: 2.111 MB / 0.5603 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.4716, allocations: 0 / 0.5603 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007551/0.4723, allocations: 124 kB / 0.5604 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005451/0.4729, allocations: 166.5 kB / 0.5606 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.978e-05/0.473, allocations: 23.98 kB / 0.5606 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004248/0.4772, allocations: 4.805 MB / 0.5653 GB, free: 7.648 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.4773, allocations: 7.969 kB / 0.5653 GB, free: 7.641 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00228/0.4795, allocations: 1.53 MB / 0.5668 GB, free: 6.039 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004528/0.48, allocations: 219.9 kB / 0.567 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.4802, allocations: 24 kB / 0.5671 GB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004618/0.4806, allocations: 31.97 kB / 0.5671 GB, free: 5.75 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.4808, allocations: 52.42 kB / 0.5671 GB, free: 5.699 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.279e-05/0.4808, allocations: 27.94 kB / 0.5672 GB, free: 5.672 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007269/0.4816, allocations: 0.5146 MB / 0.5677 GB, free: 5.164 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4816, allocations: 0 / 0.5677 GB, free: 5.164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001158/0.4828, allocations: 256 kB / 0.5679 GB, free: 4.914 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.003442/0.4862, allocations: 2.39 MB / 0.5702 GB, free: 2.59 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002752/0.489, allocations: 1.33 MB / 0.5715 GB, free: 1.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.146e-06/0.489, allocations: 8.062 kB / 0.5715 GB, free: 1.223 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00133/0.4903, allocations: 0.7844 MB / 0.5723 GB, free: 408 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.4915, allocations: 216.9 kB / 0.5725 GB, free: 192 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.5066, allocations: 9.828 MB / 0.5821 GB, free: 5.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000961/0.5076, allocations: 1.143 MB / 0.5832 GB, free: 4.758 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000748/0.5084, allocations: 239.2 kB / 0.5835 GB, free: 4.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000559/0.509, allocations: 359.3 kB / 0.5838 GB, free: 4.168 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.509, allocations: 0 / 0.5838 GB, free: 4.168 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05664/0.5656, allocations: 24.29 MB / 0.6075 GB, free: 12.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.14/16.71, allocations: 7.922 kB / 0.6075 GB, free: 12.02 MB / 478.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)