Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 106.4 kB / 16.62 MB, free: 6.734 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.001766/0.001766, allocations: 197.8 kB / 17.55 MB, free: 5.914 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.394/1.394, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1764/0.1764, allocations: 38.04 MB / 329.4 MB, free: 9.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 64.17 kB / 398.3 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1106, allocations: 58.06 MB / 456.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008155/0.1188, allocations: 6.064 MB / 462.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007037/0.1259, allocations: 4.227 MB / 466.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007002/0.1266, allocations: 35.75 kB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009133/0.1358, allocations: 4.874 MB / 471.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0011/0.1369, allocations: 294.7 kB / 471.8 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006592/0.1376, allocations: 195.8 kB / 472 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002213/0.1399, allocations: 1.602 MB / 473.6 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.1409, allocations: 0.6041 MB / 474.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007376/0.1417, allocations: 362.7 kB / 474.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008392/0.1425, allocations: 446.3 kB / 475 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001934/0.1427, allocations: 56 kB / 475.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003778/0.1431, allocations: 64 kB / 475.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004341/0.1436, allocations: 259.4 kB / 475.4 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007021/0.1443, allocations: 326.4 kB / 475.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.1455, allocations: 0.7983 MB / 476.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1456, allocations: 4 kB / 476.5 MB, free: 4.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1456, allocations: 0 / 476.5 MB, free: 4.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.671e-05/0.1456, allocations: 3.938 kB / 476.5 MB, free: 4.145 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002355/0.148, allocations: 0.8745 MB / 477.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.148, allocations: 11.89 kB / 477.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000346/0.1484, allocations: 68.19 kB / 477.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.1494, allocations: 0.5412 MB / 478 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/0.1495, allocations: 33 kB / 478.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.451e-05/0.1496, allocations: 43.98 kB / 478.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.1508, allocations: 0.6258 MB / 478.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.087e-05/0.1509, allocations: 7.906 kB / 478.7 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.647e-05/0.151, allocations: 27.97 kB / 478.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001596/0.1511, allocations: 52.95 kB / 478.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009205/0.1521, allocations: 471.5 kB / 479.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003447/0.1555, allocations: 2.518 MB / 481.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000517/0.1561, allocations: 273.2 kB / 482.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.1563, allocations: 141.7 kB / 482.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.1563, allocations: 11.97 kB / 482.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.1564, allocations: 39.06 kB / 482.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.773e-06/0.1564, allocations: 0 / 482.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003009/0.1594, allocations: 1.536 MB / 483.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.1595, allocations: 81.11 kB / 483.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004833/0.16, allocations: 413.8 kB / 484.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.16, allocations: 29.7 kB / 484.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/0.1602, allocations: 299.5 kB / 484.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.1604, allocations: 114.4 kB / 484.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.1605, allocations: 78.16 kB / 484.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1607, allocations: 366.7 kB / 485.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.1609, allocations: 132.7 kB / 485.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003075/0.1612, allocations: 274.3 kB / 485.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005815/0.1618, allocations: 457.9 kB / 486 MB, free: 10.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1618, allocations: 4 kB / 486 MB, free: 10.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001105/0.1629, allocations: 0.6713 MB / 486.6 MB, free: 9.391 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.1629, allocations: 10.34 kB / 486.7 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.163, allocations: 4 kB / 486.7 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004722/0.1634, allocations: 145.8 kB / 486.8 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/0.1638, allocations: 79.83 kB / 486.9 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003606/0.1674, allocations: 3.676 MB / 490.6 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.1677, allocations: 11.98 kB / 490.6 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.1678, allocations: 23.94 kB / 490.6 MB, free: 5.152 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * 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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003705/0.1681, allocations: 237.6 kB / 490.8 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.848e-05/0.1682, allocations: 43.52 kB / 490.9 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.1693, allocations: 0.5791 MB / 491.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.1693, allocations: 4 kB / 491.5 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007749/0.1701, allocations: 487.9 kB / 491.9 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1701, allocations: 3.984 kB / 491.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.1717, allocations: 1.002 MB / 492.9 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1717, allocations: 0 / 492.9 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002104/0.1719, allocations: 43.91 kB / 493 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002847/0.1722, allocations: 96.98 kB / 493.1 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/0.1723, allocations: 8 kB / 493.1 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00212/0.1744, allocations: 2.024 MB / 495.1 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.1744, allocations: 4 kB / 495.1 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.1754, allocations: 0.6444 MB / 495.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.1756, allocations: 140.5 kB / 495.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.364e-05/0.1757, allocations: 8 kB / 495.9 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.1759, allocations: 4 kB / 495.9 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.526e-05/0.176, allocations: 28.03 kB / 495.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.176, allocations: 12 kB / 495.9 MB, free: 15.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003543/0.1763, allocations: 299.1 kB / 496.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1764, allocations: 4 kB / 496.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005421/0.1769, allocations: 116 kB / 496.3 MB, free: 15.06 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001282/0.177, allocations: 111.1 kB / 496.5 MB, free: 14.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.1782, allocations: 0.6388 MB / 497.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1782, allocations: 0 / 497.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004357/0.1786, allocations: 298.7 kB / 497.4 MB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006828/0.1793, allocations: 117.3 kB / 497.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.1814, allocations: 1.333 MB / 498.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005161/0.182, allocations: 0.9245 MB / 499.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002721/0.1822, allocations: 72.31 kB / 499.8 MB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.848e-05/0.1823, allocations: 39.42 kB / 499.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1823, allocations: 0 / 499.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of Templates: time 0.01195/0.1943, allocations: 5.614 MB / 0.4936 GB, free: 5.871 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches