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.001524/0.001525, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001687/0.001687, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.384/1.384, allocations: 222.9 MB / 241.5 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1744/0.1744, allocations: 38.04 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 65.2 kB / 398.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1018, allocations: 58.06 MB / 456.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.00778/0.1097, allocations: 5.222 MB / 462.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006853/0.1166, allocations: 3.973 MB / 466.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006816/0.1173, allocations: 19.88 kB / 466.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01086/0.1282, allocations: 4.792 MB / 470.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00134/0.1295, allocations: 318.5 kB / 471.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008195/0.1304, allocations: 211.7 kB / 471.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002442/0.1328, allocations: 1.548 MB / 472.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001192/0.134, allocations: 0.5962 MB / 473.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009069/0.135, allocations: 366.7 kB / 473.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008233/0.1358, allocations: 406.5 kB / 474.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001896/0.136, allocations: 56 kB / 474.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.1363, allocations: 75.98 kB / 474.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003176/0.1366, allocations: 251.3 kB / 474.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005302/0.1372, allocations: 326.5 kB / 475 MB, free: 5.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009953/0.1382, allocations: 0.7983 MB / 475.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1382, allocations: 0 / 475.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1382, allocations: 0 / 475.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.781e-05/0.1382, allocations: 0 / 475.8 MB, free: 5.094 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.001873/0.1401, allocations: 0.8668 MB / 476.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1402, allocations: 11.89 kB / 476.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003222/0.1405, allocations: 80.06 kB / 476.7 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009976/0.1415, allocations: 0.5451 MB / 477.3 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.1416, allocations: 37 kB / 477.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.639e-05/0.1416, allocations: 43.98 kB / 477.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009267/0.1426, allocations: 0.6258 MB / 478 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.1426, allocations: 7.938 kB / 478 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.884e-05/0.1427, allocations: 19.98 kB / 478 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.1428, allocations: 48.97 kB / 478.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007348/0.1435, allocations: 467.6 kB / 478.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003034/0.1466, allocations: 2.518 MB / 481 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.147, allocations: 276.2 kB / 481.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.1473, allocations: 150.2 kB / 481.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.1473, allocations: 8.484 kB / 481.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.1473, allocations: 38.55 kB / 481.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 3.497e-06/0.1473, allocations: 0 / 481.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002895/0.1502, allocations: 1.538 MB / 483 MB, free: 13.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.1503, allocations: 93.03 kB / 483.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004388/0.1508, allocations: 409.8 kB / 483.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.1508, allocations: 29.7 kB / 483.6 MB, free: 12.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/0.151, allocations: 307.5 kB / 483.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.388e-05/0.1511, allocations: 110.5 kB / 484 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.1513, allocations: 82.03 kB / 484 MB, free: 12.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1514, allocations: 366.7 kB / 484.4 MB, free: 12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002168/0.1517, allocations: 124.8 kB / 484.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003339/0.152, allocations: 282.3 kB / 484.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006018/0.1526, allocations: 453.6 kB / 485.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1526, allocations: 0 / 485.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001115/0.1537, allocations: 0.6754 MB / 485.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.1538, allocations: 8 kB / 485.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1538, allocations: 4.406 kB / 485.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004317/0.1542, allocations: 153.5 kB / 486.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003076/0.1545, allocations: 79.89 kB / 486.2 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003396/0.158, allocations: 3.668 MB / 489.8 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/0.1582, allocations: 11.98 kB / 489.8 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.1583, allocations: 23.94 kB / 489.9 MB, free: 6.086 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.0002993/0.1586, allocations: 235.9 kB / 490.1 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/0.1587, allocations: 51.48 kB / 490.1 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009607/0.1597, allocations: 0.5672 MB / 490.7 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1597, allocations: 4 kB / 490.7 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007566/0.1604, allocations: 486.2 kB / 491.2 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1605, allocations: 0 / 491.2 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001563/0.162, allocations: 1.006 MB / 492.2 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.162, allocations: 0 / 492.2 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.1623, allocations: 43.91 kB / 492.2 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002805/0.1626, allocations: 96.84 kB / 492.3 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.1626, allocations: 12 kB / 492.3 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002107/0.1647, allocations: 2.02 MB / 494.4 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1647, allocations: 8 kB / 494.4 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008973/0.1656, allocations: 0.642 MB / 495 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.1658, allocations: 148.5 kB / 495.2 MB, free: 464 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.65e-05/0.1659, allocations: 8 kB / 495.2 MB, free: 456 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.1661, allocations: 4 kB / 495.2 MB, free: 452 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.1662, allocations: 31.89 kB / 495.2 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.1662, allocations: 8 kB / 495.2 MB, free: 412 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003084/0.1665, allocations: 299.1 kB / 495.5 MB, free: 116 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1665, allocations: 0 / 495.5 MB, free: 116 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005281/0.167, allocations: 124 kB / 495.6 MB, free: 15.99 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.000121/0.1672, allocations: 111.1 kB / 495.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.1682, allocations: 0.6304 MB / 496.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.1682, allocations: 0 / 496.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004275/0.1686, allocations: 298.4 kB / 496.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006558/0.1693, allocations: 112 kB / 496.8 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.1713, allocations: 1.137 MB / 497.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005172/0.1718, allocations: 0.9167 MB / 498.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002886/0.1721, allocations: 76.31 kB / 498.9 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.594e-05/0.1722, allocations: 31.44 kB / 498.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1722, allocations: 0 / 498.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of Templates: time 0.0116/0.1838, allocations: 5.604 MB / 0.4927 GB, free: 7.043 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