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.002011/0.002011, allocations: 109.3 kB / 17.06 MB, free: 6.023 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.002232/0.002232, allocations: 191 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.481/1.481, 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.214/0.214, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 59.91 kB / 458.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.501/0.5029, allocations: 58.06 MB / 0.5041 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007654/0.5106, allocations: 7.11 MB / 0.5111 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008655/0.5193, allocations: 5.087 MB / 0.516 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008988/0.5202, allocations: 31.94 kB / 0.516 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01367/0.5339, allocations: 5.72 MB / 0.5216 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002172/0.5361, allocations: 0.5155 MB / 0.5221 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002462/0.5386, allocations: 0.4897 MB / 0.5226 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005145/0.5437, allocations: 2.256 MB / 0.5248 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002799/0.5466, allocations: 0.9297 MB / 0.5257 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.5483, allocations: 0.6072 MB / 0.5263 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001664/0.55, allocations: 0.7244 MB / 0.527 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005406/0.5505, allocations: 99.97 kB / 0.5271 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.5518, allocations: 259.7 kB / 0.5274 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009437/0.5527, allocations: 0.4888 MB / 0.5278 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001351/0.5541, allocations: 0.5843 MB / 0.5284 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002296/0.5564, allocations: 1.542 MB / 0.5299 GB, free: 9.371 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.5564, allocations: 0 / 0.5299 GB, free: 9.371 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.5564, allocations: 1.125 kB / 0.5299 GB, free: 9.371 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.649e-05/0.5565, allocations: 0 / 0.5299 GB, free: 9.371 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.003351/0.5598, allocations: 1.456 MB / 0.5313 GB, free: 8.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.543e-05/0.5599, allocations: 12.88 kB / 0.5314 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007685/0.5607, allocations: 150.3 kB / 0.5315 GB, free: 8.207 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001907/0.5626, allocations: 0.9021 MB / 0.5324 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.769e-05/0.5627, allocations: 62.3 kB / 0.5324 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001942/0.5629, allocations: 92.77 kB / 0.5325 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002005/0.5649, allocations: 1.237 MB / 0.5337 GB, free: 6.652 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.467e-05/0.5649, allocations: 6.219 kB / 0.5337 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.174e-05/0.565, allocations: 33.02 kB / 0.5338 GB, free: 6.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002368/0.5653, allocations: 90.97 kB / 0.5339 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.567, allocations: 1 MB / 0.5348 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007164/0.5742, allocations: 4.893 MB / 0.5396 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.5753, allocations: 0.6498 MB / 0.5403 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005719/0.5759, allocations: 355.1 kB / 0.5406 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.302e-05/0.5759, allocations: 11.44 kB / 0.5406 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000672/0.5766, allocations: 447 kB / 0.541 GB, free: 1.238 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.725e-06/0.5766, allocations: 0 / 0.541 GB, free: 1.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.005421/0.5821, allocations: 2.73 MB / 0.5437 GB, free: 15.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.5822, allocations: 110.7 kB / 0.5438 GB, free: 15.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.5835, allocations: 0.7463 MB / 0.5445 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.953e-05/0.5836, allocations: 37.7 kB / 0.5446 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003735/0.5839, allocations: 0.4948 MB / 0.545 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002114/0.5842, allocations: 252.5 kB / 0.5453 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002777/0.5844, allocations: 174.5 kB / 0.5455 GB, free: 13.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.5846, allocations: 402.7 kB / 0.5458 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005639/0.5852, allocations: 373.8 kB / 0.5462 GB, free: 12.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008055/0.586, allocations: 0.6578 MB / 0.5468 GB, free: 12.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.5875, allocations: 1.061 MB / 0.5479 GB, free: 10.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.5875, allocations: 4 kB / 0.5479 GB, free: 10.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003004/0.5905, allocations: 1.624 MB / 0.5495 GB, free: 9.242 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.5906, allocations: 12.03 kB / 0.5495 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.5906, allocations: 12 kB / 0.5495 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001491/0.5921, allocations: 485.2 kB / 0.55 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006213/0.5927, allocations: 171.7 kB / 0.5501 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009621/0.6023, allocations: 7.079 MB / 0.557 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/0.6033, allocations: 51.95 kB / 0.5571 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.6035, allocations: 47.98 kB / 0.5571 GB, free: 1.113 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.0007314/0.6042, allocations: 341.5 kB / 0.5574 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/0.6044, allocations: 90.94 kB / 0.5575 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.6064, allocations: 1.122 MB / 0.5586 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.6064, allocations: 4 kB / 0.5586 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.6064, allocations: 4 kB / 0.5586 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.6064, allocations: 0 / 0.5586 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003853/0.6103, allocations: 2.111 MB / 0.5607 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.6103, allocations: 4 kB / 0.5607 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007082/0.611, allocations: 123.8 kB / 0.5608 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005228/0.6115, allocations: 162.5 kB / 0.561 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.783e-05/0.6116, allocations: 23.98 kB / 0.561 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004635/0.6163, allocations: 4.808 MB / 0.5657 GB, free: 7.715 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.6163, allocations: 4.031 kB / 0.5657 GB, free: 7.711 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.6189, allocations: 1.534 MB / 0.5672 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005402/0.6194, allocations: 212 kB / 0.5674 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002229/0.6197, allocations: 23.98 kB / 0.5674 GB, free: 5.855 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005488/0.6202, allocations: 35.97 kB / 0.5675 GB, free: 5.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.6204, allocations: 44.44 kB / 0.5675 GB, free: 5.777 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.768e-05/0.6205, allocations: 23.98 kB / 0.5675 GB, free: 5.754 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000903/0.6214, allocations: 0.5146 MB / 0.568 GB, free: 5.246 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.823e-06/0.6214, allocations: 3.938 kB / 0.568 GB, free: 5.242 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001407/0.6228, allocations: 272 kB / 0.5683 GB, free: 4.977 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.001098/0.6239, allocations: 410.6 kB / 0.5687 GB, free: 4.715 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002619/0.6265, allocations: 1.327 MB / 0.57 GB, free: 3.367 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.6266, allocations: 0 / 0.57 GB, free: 3.367 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.6278, allocations: 0.7924 MB / 0.5707 GB, free: 2.535 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.6288, allocations: 213 kB / 0.571 GB, free: 2.328 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004382/0.6332, allocations: 2.665 MB / 0.5736 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008121/0.634, allocations: 1.147 MB / 0.5747 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006238/0.6347, allocations: 235.3 kB / 0.5749 GB, free: 14.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001894/0.6349, allocations: 71.41 kB / 0.575 GB, free: 14.14 MB / 446.1 MB Notification: Performance of SimCode: time 5.31e-07/0.6349, allocations: 0 / 0.575 GB, free: 14.14 MB / 446.1 MB Notification: Performance of Templates: time 0.02722/0.6621, allocations: 14.79 MB / 0.5894 GB, free: 15.48 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