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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 112.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001949/0.001949, allocations: 180.9 kB / 23.71 MB, free: 4.695 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1827/0.1827, allocations: 38.54 MB / 346.3 MB, free: 2.125 MB / 270.1 MB
"
[Timeout remaining time 180]
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=1200,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=1200,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002614/0.002614, allocations: 67.88 kB / 484.6 MB, free: 11.12 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4164/0.419, allocations: 61.28 MB / 0.533 GB, free: 5.562 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008079/0.4271, allocations: 7.312 MB / 0.5402 GB, free: 160 kB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00902/0.4361, allocations: 5.146 MB / 0.5452 GB, free: 12.09 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0008748/0.437, allocations: 40.34 kB / 0.5452 GB, free: 12.07 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.014/0.451, allocations: 6.585 MB / 0.5517 GB, free: 8.375 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001732/0.4527, allocations: 0.516 MB / 0.5522 GB, free: 7.953 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.4542, allocations: 0.4978 MB / 0.5527 GB, free: 7.566 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.003921/0.4581, allocations: 2.387 MB / 0.555 GB, free: 5.594 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.4593, allocations: 0.7678 MB / 0.5557 GB, free: 4.812 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001381/0.4607, allocations: 0.6306 MB / 0.5564 GB, free: 4.18 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.4619, allocations: 0.7681 MB / 0.5571 GB, free: 3.41 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001765/0.4621, allocations: 100 kB / 0.5572 GB, free: 3.312 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0006597/0.4628, allocations: 271.7 kB / 0.5575 GB, free: 3.047 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0005278/0.4633, allocations: 0.4986 MB / 0.558 GB, free: 2.547 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0006739/0.464, allocations: 0.5754 MB / 0.5585 GB, free: 1.969 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.002184/0.4662, allocations: 1.553 MB / 0.56 GB, free: 420 kB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.4662, allocations: 0 / 0.56 GB, free: 420 kB / 398.1 MB
Notification: Performance of FrontEnd: time 4.028e-06/0.4662, allocations: 7.938 kB / 0.56 GB, free: 412 kB / 398.1 MB
Notification: Performance of Transformations before backend: time 3.67e-05/0.4662, allocations: 0 / 0.56 GB, free: 412 kB / 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.003618/0.4698, allocations: 1.411 MB / 0.5614 GB, free: 14.95 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.4699, allocations: 8.031 kB / 0.5614 GB, free: 14.95 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006433/0.4705, allocations: 160.1 kB / 0.5616 GB, free: 14.79 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/0.4723, allocations: 0.834 MB / 0.5624 GB, free: 13.93 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.91e-05/0.4724, allocations: 61.98 kB / 0.5625 GB, free: 13.87 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/0.4725, allocations: 80 kB / 0.5625 GB, free: 13.79 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/0.4745, allocations: 1.235 MB / 0.5637 GB, free: 12.48 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/0.4745, allocations: 15.81 kB / 0.5638 GB, free: 12.47 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.409e-05/0.4746, allocations: 39.98 kB / 0.5638 GB, free: 12.43 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002394/0.4748, allocations: 81.95 kB / 0.5639 GB, free: 12.35 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.4765, allocations: 1.011 MB / 0.5649 GB, free: 11.34 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006984/0.4835, allocations: 4.743 MB / 0.5695 GB, free: 6.406 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000988/0.4845, allocations: 0.5344 MB / 0.57 GB, free: 5.855 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006069/0.4851, allocations: 335 kB / 0.5703 GB, free: 5.523 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.394e-05/0.4852, allocations: 12.48 kB / 0.5703 GB, free: 5.512 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007215/0.4859, allocations: 448.4 kB / 0.5708 GB, free: 5.055 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=62): time 2.114e-06/0.4859, allocations: 0 / 0.5708 GB, free: 5.055 MB / 414.1 MB
Notification: Performance of matching and sorting (n=65): time 0.00485/0.4907, allocations: 2.353 MB / 0.5731 GB, free: 2.66 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/0.4908, allocations: 119.4 kB / 0.5732 GB, free: 2.52 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009946/0.4918, allocations: 0.7507 MB / 0.5739 GB, free: 1.758 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.4919, allocations: 41.7 kB / 0.574 GB, free: 1.711 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.000402/0.4923, allocations: 0.5039 MB / 0.5744 GB, free: 1.199 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.4925, allocations: 253.8 kB / 0.5747 GB, free: 0.9492 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002908/0.4928, allocations: 186.5 kB / 0.5749 GB, free: 0.7617 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002339/0.493, allocations: 398.7 kB / 0.5752 GB, free: 372 kB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006301/0.4937, allocations: 377.9 kB / 0.5756 GB, free: 15.99 MB / 430.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008526/0.4945, allocations: 0.65 MB / 0.5762 GB, free: 15.21 MB / 430.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/0.496, allocations: 1.053 MB / 0.5773 GB, free: 14.04 MB / 430.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.496, allocations: 4 kB / 0.5773 GB, free: 14.04 MB / 430.1 MB
Notification: Performance of matching and sorting (n=120) (initialization): time 0.00315/0.4992, allocations: 1.536 MB / 0.5788 GB, free: 12.48 MB / 430.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.4992, allocations: 8.5 kB / 0.5788 GB, free: 12.48 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.4992, allocations: 15.98 kB / 0.5788 GB, free: 12.46 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.00163/0.5008, allocations: 489.2 kB / 0.5793 GB, free: 11.98 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006882/0.5015, allocations: 167.7 kB / 0.5794 GB, free: 11.81 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/0.5124, allocations: 6.883 MB / 0.5861 GB, free: 4.695 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008143/0.5132, allocations: 44.03 kB / 0.5862 GB, free: 4.652 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.592e-05/0.5133, allocations: 51.98 kB / 0.5862 GB, free: 4.602 MB / 430.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.0005839/0.5139, allocations: 345.5 kB / 0.5866 GB, free: 4.254 MB / 430.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.514, allocations: 91.39 kB / 0.5867 GB, free: 4.164 MB / 430.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001987/0.516, allocations: 0.9732 MB / 0.5876 GB, free: 3.168 MB / 430.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.516, allocations: 8 kB / 0.5876 GB, free: 3.16 MB / 430.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.516, allocations: 0 / 0.5876 GB, free: 3.16 MB / 430.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.516, allocations: 3.984 kB / 0.5876 GB, free: 3.156 MB / 430.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003714/0.5198, allocations: 1.927 MB / 0.5895 GB, free: 1.16 MB / 430.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.5198, allocations: 4 kB / 0.5895 GB, free: 1.156 MB / 430.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007715/0.5205, allocations: 127.9 kB / 0.5896 GB, free: 1.031 MB / 430.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0005816/0.5211, allocations: 162.5 kB / 0.5898 GB, free: 0.8633 MB / 430.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.521e-05/0.5212, allocations: 23.98 kB / 0.5898 GB, free: 0.8398 MB / 430.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004561/0.5257, allocations: 4.514 MB / 0.5942 GB, free: 11.98 MB / 446.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5257, allocations: 0 / 0.5942 GB, free: 11.98 MB / 446.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.5282, allocations: 1.394 MB / 0.5956 GB, free: 10.55 MB / 446.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003908/0.5286, allocations: 135.4 kB / 0.5957 GB, free: 10.42 MB / 446.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.5287, allocations: 19.98 kB / 0.5957 GB, free: 10.4 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004526/0.5292, allocations: 27.98 kB / 0.5957 GB, free: 10.38 MB / 446.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.5293, allocations: 56.33 kB / 0.5958 GB, free: 10.32 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.384e-05/0.5294, allocations: 23.98 kB / 0.5958 GB, free: 10.3 MB / 446.1 MB
Notification: Performance of sorting global known variables: time 0.0007273/0.5301, allocations: 0.5146 MB / 0.5963 GB, free: 9.789 MB / 446.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.5301, allocations: 0 / 0.5963 GB, free: 9.789 MB / 446.1 MB
Notification: Performance of remove unused functions: time 0.001094/0.5312, allocations: 267.9 kB / 0.5966 GB, free: 9.527 MB / 446.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.001509/0.5327, allocations: 416.3 kB / 0.597 GB, free: 9.262 MB / 446.1 MB
Notification: Performance of simCode: created initialization part: time 0.002721/0.5354, allocations: 1.287 MB / 0.5982 GB, free: 7.953 MB / 446.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.5355, allocations: 1.438 kB / 0.5982 GB, free: 7.953 MB / 446.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001376/0.5368, allocations: 0.7606 MB / 0.599 GB, free: 7.152 MB / 446.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.538, allocations: 208.8 kB / 0.5992 GB, free: 6.949 MB / 446.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004932/0.5429, allocations: 2.724 MB / 0.6018 GB, free: 4.184 MB / 446.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009209/0.5438, allocations: 1.151 MB / 0.603 GB, free: 3.008 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.0008015/0.5446, allocations: 235.3 kB / 0.6032 GB, free: 2.773 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/0.5448, allocations: 71.36 kB / 0.6033 GB, free: 2.703 MB / 446.1 MB
Notification: Performance of SimCode: time 1.403e-06/0.5448, allocations: 4 kB / 0.6033 GB, free: 2.699 MB / 446.1 MB
Notification: Performance of Templates: time 0.02893/0.5737, allocations: 15.61 MB / 0.6185 GB, free: 3.207 MB / 462.1 MB
"
[Timeout remaining time 659]
make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile [Timeout 660]
(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) [Timeout 480]
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) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.680017530918121]