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.001006/0.001006, allocations: 102.4 kB / 16.5 MB, free: 6.641 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.001136/0.001136, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.408/1.408, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1723/0.1723, allocations: 38.03 MB / 329.3 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 68.83 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.124, allocations: 58.06 MB / 456.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.00747/0.1315, allocations: 6.069 MB / 462.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006329/0.1379, allocations: 4.372 MB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006941/0.1386, allocations: 31.81 kB / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008547/0.1472, allocations: 4.707 MB / 471.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009091/0.1481, allocations: 310.7 kB / 471.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004739/0.1486, allocations: 195.8 kB / 471.8 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002027/0.1506, allocations: 2.062 MB / 473.9 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007495/0.1514, allocations: 0.4939 MB / 474.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/0.1518, allocations: 310.7 kB / 474.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005179/0.1523, allocations: 426.5 kB / 475.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.804e-05/0.1524, allocations: 32 kB / 475.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001501/0.1525, allocations: 55.86 kB / 475.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002222/0.1528, allocations: 223.4 kB / 475.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002905/0.1531, allocations: 306.5 kB / 475.7 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006833/0.1537, allocations: 0.7748 MB / 476.5 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1538, allocations: 4 kB / 476.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1538, allocations: 0 / 476.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1538, allocations: 0 / 476.5 MB, free: 4.109 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.001576/0.1554, allocations: 0.8746 MB / 477.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.1554, allocations: 11.97 kB / 477.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000272/0.1557, allocations: 72.17 kB / 477.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000898/0.1566, allocations: 0.5373 MB / 478 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.177e-05/0.1566, allocations: 36.98 kB / 478 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.596e-05/0.1567, allocations: 47.92 kB / 478.1 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009342/0.1577, allocations: 0.6335 MB / 478.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.1577, allocations: 7.906 kB / 478.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.726e-05/0.1578, allocations: 23.98 kB / 478.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001199/0.1579, allocations: 44.97 kB / 478.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006838/0.1586, allocations: 467.6 kB / 479.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002902/0.1615, allocations: 2.515 MB / 481.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004305/0.1619, allocations: 288.1 kB / 482 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.1622, allocations: 142.2 kB / 482.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.1622, allocations: 8 kB / 482.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.1622, allocations: 38.56 kB / 482.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 3.627e-06/0.1622, allocations: 0 / 482.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002877/0.1651, allocations: 1.54 MB / 483.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.1652, allocations: 81.11 kB / 483.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/0.1657, allocations: 409.9 kB / 484.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.1657, allocations: 29.7 kB / 484.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.1659, allocations: 303.5 kB / 484.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.103e-05/0.166, allocations: 118.3 kB / 484.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.1661, allocations: 78.12 kB / 484.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1663, allocations: 362.8 kB / 485.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.1665, allocations: 128.8 kB / 485.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.1668, allocations: 278.3 kB / 485.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005421/0.1673, allocations: 449.9 kB / 485.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1674, allocations: 4 kB / 485.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001056/0.1684, allocations: 0.6752 MB / 486.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1684, allocations: 8 kB / 486.6 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.1685, allocations: 7.984 kB / 486.6 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004572/0.1689, allocations: 149.8 kB / 486.8 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003022/0.1692, allocations: 79.89 kB / 486.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003197/0.1725, allocations: 3.393 MB / 490.3 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.1727, allocations: 15.98 kB / 490.3 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.1728, allocations: 20 kB / 490.3 MB, free: 5.398 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.0003393/0.1731, allocations: 233.6 kB / 490.5 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.174e-05/0.1732, allocations: 51.42 kB / 490.6 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.1743, allocations: 0.5714 MB / 491.1 MB, free: 4.508 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.1743, allocations: 7.938 kB / 491.1 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007388/0.175, allocations: 491.8 kB / 491.6 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.175, allocations: 0 / 491.6 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.1765, allocations: 1.002 MB / 492.6 MB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.1765, allocations: 3.938 kB / 492.6 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.1768, allocations: 43.91 kB / 492.7 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003509/0.1771, allocations: 88.78 kB / 492.8 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.1772, allocations: 12.09 kB / 492.8 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002194/0.1794, allocations: 1.863 MB / 494.6 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.1794, allocations: 11.95 kB / 494.6 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.1804, allocations: 0.6442 MB / 495.3 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002459/0.1807, allocations: 136.6 kB / 495.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.66e-05/0.1808, allocations: 11.98 kB / 495.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.181, allocations: 12 kB / 495.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.186e-05/0.181, allocations: 27.92 kB / 495.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-05/0.1811, allocations: 12.06 kB / 495.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003601/0.1814, allocations: 303.1 kB / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1814, allocations: 0 / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005462/0.182, allocations: 120 kB / 495.9 MB, free: 15.46 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.0001287/0.1821, allocations: 99.25 kB / 496 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.1832, allocations: 0.6069 MB / 496.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.1832, allocations: 0 / 496.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004676/0.1836, allocations: 307.5 kB / 496.9 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000733/0.1844, allocations: 97.89 kB / 497 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.1865, allocations: 1.348 MB / 498.3 MB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005377/0.1871, allocations: 0.9205 MB / 499.3 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002584/0.1873, allocations: 80.31 kB / 499.3 MB, free: 11.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.281e-05/0.1874, allocations: 31.44 kB / 499.4 MB, free: 11.87 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.1874, allocations: 0 / 499.4 MB, free: 11.87 MB / 382.1 MB Notification: Performance of Templates: time 0.0114/0.1988, allocations: 5.403 MB / 0.4929 GB, free: 6.523 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