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.001411/0.001411, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001392/0.001392, allocations: 175.1 kB / 18.66 MB, free: 4.449 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.341/1.341, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1834/0.1834, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 63.91 kB / 458.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3357, allocations: 58.05 MB / 0.5048 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007982/0.3437, allocations: 7.122 MB / 0.5117 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007772/0.3515, allocations: 5.08 MB / 0.5167 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.3526, allocations: 35.31 kB / 0.5167 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0122/0.3648, allocations: 5.705 MB / 0.5223 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002037/0.3669, allocations: 0.5086 MB / 0.5228 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001628/0.3686, allocations: 0.4918 MB / 0.5233 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003909/0.3725, allocations: 2.251 MB / 0.5255 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.374, allocations: 0.9309 MB / 0.5264 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001286/0.3753, allocations: 0.6131 MB / 0.527 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.3765, allocations: 0.7272 MB / 0.5277 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001874/0.3767, allocations: 99.34 kB / 0.5278 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007081/0.3774, allocations: 255.1 kB / 0.528 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005057/0.3779, allocations: 499 kB / 0.5285 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006252/0.3785, allocations: 0.5771 MB / 0.5291 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001927/0.3805, allocations: 1.549 MB / 0.5306 GB, free: 9.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3805, allocations: 0 / 0.5306 GB, free: 9.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3805, allocations: 7.938 kB / 0.5306 GB, free: 9.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.345e-05/0.3805, allocations: 1.25 kB / 0.5306 GB, free: 9.41 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.003108/0.3836, allocations: 1.451 MB / 0.532 GB, free: 8.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3837, allocations: 13.59 kB / 0.532 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006901/0.3844, allocations: 146 kB / 0.5321 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001702/0.3861, allocations: 0.9064 MB / 0.533 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.576e-05/0.3862, allocations: 66.23 kB / 0.5331 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.3863, allocations: 83.81 kB / 0.5332 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.3882, allocations: 1.238 MB / 0.5344 GB, free: 6.699 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.925e-05/0.3882, allocations: 9.375 kB / 0.5344 GB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-05/0.3883, allocations: 37.02 kB / 0.5344 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002268/0.3886, allocations: 86.94 kB / 0.5345 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.3902, allocations: 1.007 MB / 0.5355 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006728/0.3969, allocations: 4.883 MB / 0.5403 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009744/0.3979, allocations: 0.6563 MB / 0.5409 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005434/0.3985, allocations: 356.5 kB / 0.5412 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.348e-05/0.3986, allocations: 11.44 kB / 0.5413 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006651/0.3992, allocations: 447 kB / 0.5417 GB, free: 1.273 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.535e-06/0.3992, allocations: 1.312 kB / 0.5417 GB, free: 1.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004957/0.4042, allocations: 2.725 MB / 0.5443 GB, free: 15.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.4043, allocations: 109.3 kB / 0.5444 GB, free: 15.3 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009642/0.4053, allocations: 0.7504 MB / 0.5452 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.725e-05/0.4053, allocations: 41.7 kB / 0.5452 GB, free: 14.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003478/0.4057, allocations: 0.4948 MB / 0.5457 GB, free: 14.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002023/0.4059, allocations: 240.5 kB / 0.5459 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002581/0.4062, allocations: 178.5 kB / 0.5461 GB, free: 13.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.4063, allocations: 398.7 kB / 0.5465 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005557/0.4069, allocations: 373.8 kB / 0.5468 GB, free: 12.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000726/0.4076, allocations: 0.65 MB / 0.5475 GB, free: 12.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.4089, allocations: 1.057 MB / 0.5485 GB, free: 10.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.409, allocations: 4 kB / 0.5485 GB, free: 10.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003002/0.412, allocations: 1.635 MB / 0.5501 GB, free: 9.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.412, allocations: 8 kB / 0.5501 GB, free: 9.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.412, allocations: 15.94 kB / 0.5501 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.4135, allocations: 485.8 kB / 0.5506 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/0.4141, allocations: 171.7 kB / 0.5508 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009357/0.4235, allocations: 7.082 MB / 0.5577 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009308/0.4245, allocations: 48.03 kB / 0.5577 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-05/0.4246, allocations: 47.98 kB / 0.5578 GB, free: 1.102 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.0006438/0.4253, allocations: 345.5 kB / 0.5581 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.4254, allocations: 86.88 kB / 0.5582 GB, free: 0.668 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/0.4273, allocations: 1.118 MB / 0.5593 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.4273, allocations: 4 kB / 0.5593 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.4273, allocations: 4 kB / 0.5593 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.4273, allocations: 3.984 kB / 0.5593 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003371/0.4307, allocations: 2.111 MB / 0.5613 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.4307, allocations: 0 / 0.5613 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007284/0.4315, allocations: 123.8 kB / 0.5615 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005098/0.432, allocations: 166.5 kB / 0.5616 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.204e-05/0.4321, allocations: 23.98 kB / 0.5616 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003929/0.436, allocations: 4.808 MB / 0.5663 GB, free: 7.703 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.436, allocations: 4.031 kB / 0.5663 GB, free: 7.699 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.4383, allocations: 1.526 MB / 0.5678 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004052/0.4388, allocations: 219.9 kB / 0.568 GB, free: 5.867 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.4389, allocations: 16 kB / 0.5681 GB, free: 5.852 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004516/0.4393, allocations: 31.97 kB / 0.5681 GB, free: 5.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.4395, allocations: 52.42 kB / 0.5681 GB, free: 5.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.863e-05/0.4396, allocations: 31.86 kB / 0.5682 GB, free: 5.738 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006844/0.4403, allocations: 0.5107 MB / 0.5687 GB, free: 5.234 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4403, allocations: 3.938 kB / 0.5687 GB, free: 5.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001106/0.4414, allocations: 272.1 kB / 0.5689 GB, free: 4.965 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.0009563/0.4423, allocations: 413.8 kB / 0.5693 GB, free: 4.703 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002412/0.4448, allocations: 1.333 MB / 0.5706 GB, free: 3.348 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4448, allocations: 3.938 kB / 0.5706 GB, free: 3.344 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.446, allocations: 0.782 MB / 0.5714 GB, free: 2.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.4472, allocations: 218.5 kB / 0.5716 GB, free: 2.309 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004317/0.4515, allocations: 2.749 MB / 0.5743 GB, free: 15.51 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007557/0.4523, allocations: 1.139 MB / 0.5754 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/0.4526, allocations: 79.41 kB / 0.5755 GB, free: 14.27 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4526, allocations: 0 / 0.5755 GB, free: 14.27 MB / 446.1 MB Notification: Performance of Templates: time 0.02833/0.481, allocations: 22.9 MB / 0.5978 GB, free: 7.398 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMav.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches