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.000683/0.0006831, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.0007518/0.0007518, allocations: 177 kB / 17.56 MB, free: 6.18 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.178/1.178, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1568/0.1568, allocations: 38.08 MB / 330.8 MB, free: 8.531 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003225/0.0003225, allocations: 8 kB / 400.7 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08905/0.08938, allocations: 59.17 MB / 459.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005894/0.09532, allocations: 5.655 MB / 465.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005972/0.1013, allocations: 4.294 MB / 469.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006099/0.102, allocations: 27.81 kB / 469.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008579/0.1106, allocations: 4.579 MB / 474.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001042/0.1116, allocations: 306.7 kB / 474.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000637/0.1123, allocations: 195.7 kB / 474.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002506/0.1148, allocations: 2.066 MB / 477 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.116, allocations: 0.6897 MB / 477.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006127/0.1167, allocations: 282.7 kB / 478 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007736/0.1174, allocations: 410.5 kB / 478.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.1176, allocations: 24 kB / 478.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000269/0.1179, allocations: 39.92 kB / 478.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003071/0.1182, allocations: 227.4 kB / 478.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004388/0.1186, allocations: 312.2 kB / 479 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009124/0.1195, allocations: 0.7629 MB / 479.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1196, allocations: 0 / 479.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1196, allocations: 0 / 479.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.464e-05/0.1196, allocations: 3.938 kB / 479.7 MB, free: 3.102 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.001547/0.1211, allocations: 0.7462 MB / 480.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1212, allocations: 8.031 kB / 480.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002925/0.1215, allocations: 76.08 kB / 480.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.1225, allocations: 0.5449 MB / 481.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/0.1226, allocations: 33 kB / 481.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.168e-05/0.1227, allocations: 47.98 kB / 481.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009472/0.1236, allocations: 0.6335 MB / 481.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.1236, allocations: 4 kB / 481.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.574e-05/0.1237, allocations: 19.98 kB / 481.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001189/0.1238, allocations: 44.97 kB / 481.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007295/0.1246, allocations: 467.6 kB / 482.3 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003386/0.1279, allocations: 2.518 MB / 484.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004753/0.1284, allocations: 293.1 kB / 485.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.1287, allocations: 142.2 kB / 485.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.1287, allocations: 8 kB / 485.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.1288, allocations: 46.44 kB / 485.3 MB, free: 13.19 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 3.316e-06/0.1288, allocations: 0 / 485.3 MB, free: 13.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003025/0.1318, allocations: 1.54 MB / 486.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.1319, allocations: 85.23 kB / 486.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004171/0.1323, allocations: 413.9 kB / 487.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.1323, allocations: 29.7 kB / 487.4 MB, free: 10.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.1325, allocations: 295.5 kB / 487.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.551e-05/0.1326, allocations: 118.4 kB / 487.8 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.746e-05/0.1327, allocations: 41.7 kB / 487.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1328, allocations: 358.7 kB / 488.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.133, allocations: 132.8 kB / 488.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002705/0.1333, allocations: 282.2 kB / 488.6 MB, free: 9.699 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005217/0.1338, allocations: 449.9 kB / 489 MB, free: 9.195 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1338, allocations: 4 kB / 489 MB, free: 9.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001027/0.1349, allocations: 0.683 MB / 489.7 MB, free: 8.477 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1349, allocations: 4 kB / 489.7 MB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.1349, allocations: 11.94 kB / 489.7 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004096/0.1353, allocations: 141.6 kB / 489.9 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/0.1356, allocations: 79.89 kB / 489.9 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003011/0.1386, allocations: 3.393 MB / 493.3 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.1389, allocations: 16 kB / 493.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-05/0.1389, allocations: 20 kB / 493.4 MB, free: 4.535 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.0002702/0.1392, allocations: 235.7 kB / 493.6 MB, free: 4.297 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.776e-05/0.1393, allocations: 51.58 kB / 493.6 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008968/0.1402, allocations: 0.5753 MB / 494.2 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1402, allocations: 7.938 kB / 494.2 MB, free: 3.633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000677/0.1409, allocations: 491.8 kB / 494.7 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.1409, allocations: 0 / 494.7 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001406/0.1423, allocations: 0.998 MB / 495.7 MB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.1423, allocations: 4 kB / 495.7 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.1425, allocations: 35.98 kB / 495.7 MB, free: 2.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002545/0.1428, allocations: 88.77 kB / 495.8 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.1428, allocations: 8 kB / 495.8 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001687/0.1445, allocations: 1.878 MB / 497.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.1445, allocations: 8.031 kB / 497.7 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008597/0.1454, allocations: 0.644 MB / 498.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.1455, allocations: 144.5 kB / 498.5 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.1456, allocations: 8 kB / 498.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001811/0.1458, allocations: 8 kB / 498.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.825e-05/0.1458, allocations: 27.84 kB / 498.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.1459, allocations: 16.05 kB / 498.6 MB, free: 15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003137/0.1462, allocations: 303.1 kB / 498.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1462, allocations: 0 / 498.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005765/0.1468, allocations: 120 kB / 499 MB, free: 14.59 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.0001136/0.1469, allocations: 99.25 kB / 499.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009247/0.1478, allocations: 0.6068 MB / 499.7 MB, free: 13.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1478, allocations: 0 / 499.7 MB, free: 13.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004178/0.1483, allocations: 307.4 kB / 500 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006874/0.149, allocations: 101.8 kB / 0.4884 GB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/0.1508, allocations: 1.408 MB / 0.4897 GB, free: 11.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.1513, allocations: 0.9244 MB / 0.4906 GB, free: 11.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002603/0.1516, allocations: 76.31 kB / 0.4907 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.556e-05/0.1517, allocations: 35.42 kB / 0.4908 GB, free: 10.93 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1517, allocations: 0 / 0.4908 GB, free: 10.93 MB / 382.1 MB Notification: Performance of Templates: time 0.00984/0.1615, allocations: 5.34 MB / 0.496 GB, free: 5.648 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches