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.001508/0.001508, allocations: 115.9 kB / 17.7 MB, free: 5.309 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.001839/0.00184, allocations: 191 kB / 18.63 MB, free: 4.379 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.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2113/0.2113, allocations: 38.04 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 60.09 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1179, allocations: 58.06 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006469/0.1244, allocations: 5.222 MB / 463.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005214/0.1297, allocations: 3.977 MB / 467.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003057/0.13, allocations: 19.88 kB / 467.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008014/0.1381, allocations: 4.794 MB / 472.3 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006475/0.1387, allocations: 318.5 kB / 472.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000469/0.1392, allocations: 219.7 kB / 472.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001729/0.1409, allocations: 1.548 MB / 474.4 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006897/0.1417, allocations: 0.5885 MB / 475 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003607/0.142, allocations: 374.6 kB / 475.4 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004791/0.1425, allocations: 402.5 kB / 475.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.945e-05/0.1426, allocations: 59.98 kB / 475.8 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.1427, allocations: 67.98 kB / 475.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002255/0.143, allocations: 251.4 kB / 476.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000298/0.1433, allocations: 318.5 kB / 476.4 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007153/0.144, allocations: 0.8217 MB / 477.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.144, allocations: 0 / 477.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.144, allocations: 3.938 kB / 477.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.144, allocations: 0 / 477.3 MB, free: 4.324 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.001427/0.1455, allocations: 0.8591 MB / 478.1 MB, free: 3.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.1455, allocations: 15.88 kB / 478.1 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002537/0.1458, allocations: 68.09 kB / 478.2 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009438/0.1467, allocations: 0.5607 MB / 478.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.1468, allocations: 40.98 kB / 478.8 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.403e-05/0.1468, allocations: 43.98 kB / 478.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008949/0.1478, allocations: 0.6296 MB / 479.5 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.1478, allocations: 4 kB / 479.5 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.352e-05/0.1478, allocations: 16 kB / 479.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/0.1479, allocations: 48.97 kB / 479.5 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006863/0.1486, allocations: 467.6 kB / 480 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002874/0.1515, allocations: 2.51 MB / 482.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.152, allocations: 273.2 kB / 482.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.1522, allocations: 146.2 kB / 482.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.1522, allocations: 4.5 kB / 482.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.1522, allocations: 42.5 kB / 483 MB, free: 14.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.1522, allocations: 0 / 483 MB, free: 14.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002767/0.155, allocations: 1.542 MB / 484.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.1551, allocations: 85.11 kB / 484.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004195/0.1555, allocations: 413.8 kB / 485 MB, free: 12.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.1555, allocations: 29.7 kB / 485 MB, free: 12.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000211/0.1558, allocations: 303.5 kB / 485.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.183e-05/0.1559, allocations: 114.5 kB / 485.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.156, allocations: 81.97 kB / 485.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1561, allocations: 358.7 kB / 485.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.1563, allocations: 136.7 kB / 486 MB, free: 11.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.1566, allocations: 282.2 kB / 486.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005306/0.1572, allocations: 445.7 kB / 486.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.1572, allocations: 4 kB / 486.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001022/0.1582, allocations: 0.6793 MB / 487.4 MB, free: 9.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1582, allocations: 8 kB / 487.4 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.1583, allocations: 4 kB / 487.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004234/0.1587, allocations: 153.8 kB / 487.5 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.159, allocations: 71.89 kB / 487.6 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003447/0.1624, allocations: 3.672 MB / 491.3 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002697/0.1627, allocations: 12 kB / 491.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.1628, allocations: 28.05 kB / 491.3 MB, free: 5.324 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.0003121/0.1631, allocations: 229.7 kB / 491.6 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.169e-05/0.1632, allocations: 43.44 kB / 491.6 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/0.1642, allocations: 0.575 MB / 492.2 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1642, allocations: 4 kB / 492.2 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000707/0.165, allocations: 490.2 kB / 492.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.165, allocations: 96 / 492.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.1664, allocations: 1.006 MB / 493.7 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1664, allocations: 4.031 kB / 493.7 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.1666, allocations: 35.98 kB / 493.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002609/0.1669, allocations: 92.7 kB / 493.8 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.1669, allocations: 11.98 kB / 493.8 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/0.169, allocations: 2.024 MB / 495.8 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.169, allocations: 4 kB / 495.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009667/0.17, allocations: 0.6545 MB / 496.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.1702, allocations: 132.5 kB / 496.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.929e-05/0.1702, allocations: 8 kB / 496.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.1704, allocations: 11.98 kB / 496.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.1705, allocations: 23.97 kB / 496.7 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.1705, allocations: 4 kB / 496.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003584/0.1709, allocations: 303.1 kB / 497 MB, free: 15.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1709, allocations: 8 kB / 497 MB, free: 15.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006004/0.1715, allocations: 120 kB / 497.1 MB, free: 15.23 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.0001727/0.1717, allocations: 115 kB / 497.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.1727, allocations: 0.6108 MB / 497.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.1727, allocations: 0 / 497.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004275/0.1732, allocations: 295.3 kB / 498.1 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000606/0.1738, allocations: 120.3 kB / 498.2 MB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.1757, allocations: 1.119 MB / 499.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000592/0.1763, allocations: 0.9206 MB / 0.4885 GB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002309/0.1765, allocations: 80.31 kB / 0.4886 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.854e-05/0.1766, allocations: 31.44 kB / 0.4886 GB, free: 11.86 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1766, allocations: 0 / 0.4886 GB, free: 11.86 MB / 382.1 MB Notification: Performance of Templates: time 0.01054/0.1871, allocations: 5.6 MB / 0.4941 GB, free: 6.316 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches