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: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 108.2 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.001483/0.001483, allocations: 196 kB / 18 MB, free: 5.082 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.537/1.537, 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.1853/0.1853, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 60.09 kB / 458.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4094/0.4106, allocations: 58.06 MB / 0.5041 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.00842/0.419, allocations: 7.109 MB / 0.5111 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008698/0.4278, allocations: 5.092 MB / 0.516 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009982/0.4288, allocations: 31.66 kB / 0.5161 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01492/0.4437, allocations: 5.704 MB / 0.5216 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002609/0.4463, allocations: 0.5127 MB / 0.5221 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00262/0.449, allocations: 495.7 kB / 0.5226 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006503/0.4555, allocations: 2.255 MB / 0.5248 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00261/0.4581, allocations: 0.9367 MB / 0.5257 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.4606, allocations: 0.6037 MB / 0.5263 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002486/0.4631, allocations: 0.7172 MB / 0.527 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006851/0.4638, allocations: 100.6 kB / 0.5271 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001582/0.4654, allocations: 267.5 kB / 0.5274 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001167/0.4666, allocations: 495.3 kB / 0.5278 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002227/0.4689, allocations: 0.5827 MB / 0.5284 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004515/0.4734, allocations: 1.543 MB / 0.5299 GB, free: 9.391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4734, allocations: 0 / 0.5299 GB, free: 9.391 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.4735, allocations: 0 / 0.5299 GB, free: 9.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.972e-05/0.4735, allocations: 1.094 kB / 0.5299 GB, free: 9.391 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.00495/0.4785, allocations: 1.458 MB / 0.5313 GB, free: 8.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.4785, allocations: 8.844 kB / 0.5313 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009969/0.4795, allocations: 145.8 kB / 0.5315 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002736/0.4823, allocations: 0.9178 MB / 0.5324 GB, free: 7.535 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.14e-05/0.4824, allocations: 58.97 kB / 0.5324 GB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002378/0.4826, allocations: 87.67 kB / 0.5325 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003027/0.4857, allocations: 1.237 MB / 0.5337 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.102e-05/0.4857, allocations: 2.594 kB / 0.5337 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001404/0.4859, allocations: 32.66 kB / 0.5338 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003355/0.4862, allocations: 87.31 kB / 0.5338 GB, free: 6.621 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002667/0.4889, allocations: 1.015 MB / 0.5348 GB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.4991, allocations: 4.887 MB / 0.5396 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.5007, allocations: 0.6519 MB / 0.5402 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008745/0.5016, allocations: 356.5 kB / 0.5406 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.457e-05/0.5016, allocations: 12.42 kB / 0.5406 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001025/0.5027, allocations: 454.8 kB / 0.541 GB, free: 1.242 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.955e-06/0.5027, allocations: 1.406 kB / 0.541 GB, free: 1.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.007398/0.5101, allocations: 2.72 MB / 0.5437 GB, free: 15.4 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.5103, allocations: 110.9 kB / 0.5438 GB, free: 15.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001729/0.512, allocations: 0.7458 MB / 0.5445 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.983e-05/0.5121, allocations: 41.7 kB / 0.5446 GB, free: 14.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005332/0.5127, allocations: 0.4909 MB / 0.545 GB, free: 14.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003011/0.513, allocations: 244.5 kB / 0.5453 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003839/0.5134, allocations: 182.5 kB / 0.5454 GB, free: 13.65 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002675/0.5136, allocations: 398.7 kB / 0.5458 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008294/0.5145, allocations: 373.8 kB / 0.5462 GB, free: 12.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.5158, allocations: 0.6539 MB / 0.5468 GB, free: 12.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002077/0.5179, allocations: 1.053 MB / 0.5478 GB, free: 10.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.5179, allocations: 4 kB / 0.5479 GB, free: 10.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.004311/0.5222, allocations: 1.631 MB / 0.5494 GB, free: 9.262 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.5223, allocations: 8 kB / 0.5495 GB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/0.5223, allocations: 15.94 kB / 0.5495 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002084/0.5244, allocations: 489.5 kB / 0.5499 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009041/0.5253, allocations: 171.7 kB / 0.5501 GB, free: 8.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.5368, allocations: 7.084 MB / 0.557 GB, free: 1.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.5383, allocations: 48.03 kB / 0.5571 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.465e-05/0.5384, allocations: 44 kB / 0.5571 GB, free: 1.129 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.0009312/0.5393, allocations: 345.5 kB / 0.5574 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.5395, allocations: 86.88 kB / 0.5575 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002054/0.5415, allocations: 1.125 MB / 0.5586 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.5416, allocations: 4 kB / 0.5586 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.5416, allocations: 8 kB / 0.5586 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.5416, allocations: 3.984 kB / 0.5586 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003635/0.5452, allocations: 2.107 MB / 0.5607 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.5453, allocations: 128 / 0.5607 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007184/0.546, allocations: 123.8 kB / 0.5608 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005288/0.5465, allocations: 162.3 kB / 0.561 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.114e-05/0.5466, allocations: 23.98 kB / 0.561 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004528/0.5511, allocations: 4.808 MB / 0.5657 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.5512, allocations: 4.031 kB / 0.5657 GB, free: 7.723 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002364/0.5535, allocations: 1.53 MB / 0.5672 GB, free: 6.121 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004703/0.554, allocations: 215.9 kB / 0.5674 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.5541, allocations: 16 kB / 0.5674 GB, free: 5.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004446/0.5546, allocations: 31.97 kB / 0.5674 GB, free: 5.844 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.5547, allocations: 60.36 kB / 0.5675 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.413e-05/0.5548, allocations: 20 kB / 0.5675 GB, free: 5.766 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007667/0.5556, allocations: 0.5146 MB / 0.568 GB, free: 5.258 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5556, allocations: 3.938 kB / 0.568 GB, free: 5.254 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001297/0.5569, allocations: 264.1 kB / 0.5683 GB, free: 4.996 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.001065/0.558, allocations: 426.9 kB / 0.5687 GB, free: 4.719 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002554/0.5605, allocations: 1.319 MB / 0.57 GB, free: 3.379 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5605, allocations: 8.062 kB / 0.57 GB, free: 3.371 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.5619, allocations: 0.7884 MB / 0.5707 GB, free: 2.543 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.563, allocations: 209.1 kB / 0.5709 GB, free: 2.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004475/0.5675, allocations: 2.672 MB / 0.5735 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008216/0.5683, allocations: 1.147 MB / 0.5747 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006405/0.569, allocations: 231.3 kB / 0.5749 GB, free: 14.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.5692, allocations: 71.42 kB / 0.575 GB, free: 14.15 MB / 446.1 MB Notification: Performance of SimCode: time 4.11e-07/0.5692, allocations: 0 / 0.575 GB, free: 14.15 MB / 446.1 MB Notification: Performance of Templates: time 0.0255/0.5947, allocations: 15.1 MB / 0.5897 GB, free: 15.17 MB / 462.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMav.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches