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.000806/0.0008061, allocations: 95.69 kB / 16.32 MB, free: 5.562 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.0008838/0.0008839, allocations: 180.9 kB / 17.21 MB, free: 5.484 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.251/1.251, allocations: 223.3 MB / 241.2 MB, free: 14.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.17/0.17, allocations: 38.09 MB / 330.4 MB, free: 8.613 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002832, allocations: 12.94 kB / 400.1 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08749/0.08779, allocations: 59.17 MB / 459.2 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005567/0.09339, allocations: 5.381 MB / 464.6 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005662/0.09908, allocations: 3.93 MB / 468.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005162/0.09963, allocations: 39.75 kB / 468.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008057/0.1077, allocations: 4.39 MB / 473 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008283/0.1085, allocations: 350.2 kB / 473.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005273/0.1091, allocations: 199.7 kB / 473.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002083/0.1112, allocations: 1.754 MB / 475.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009346/0.1121, allocations: 0.6304 MB / 475.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004722/0.1126, allocations: 306.7 kB / 476.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005565/0.1132, allocations: 398.5 kB / 476.6 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.881e-05/0.1133, allocations: 24 kB / 476.6 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.1134, allocations: 31.98 kB / 476.7 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.1136, allocations: 211.4 kB / 476.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.1138, allocations: 145.4 kB / 477 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005792/0.1144, allocations: 0.635 MB / 477.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1144, allocations: 4 kB / 477.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1144, allocations: 0 / 477.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.377e-05/0.1145, allocations: 0 / 477.6 MB, free: 4.879 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.001421/0.1159, allocations: 0.7654 MB / 478.4 MB, free: 4.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.1159, allocations: 8.031 kB / 478.4 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.1162, allocations: 75.14 kB / 478.5 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009082/0.1172, allocations: 0.5095 MB / 479 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.684e-05/0.1172, allocations: 40.98 kB / 479 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.562e-05/0.1173, allocations: 47.89 kB / 479.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009775/0.1183, allocations: 0.6414 MB / 479.7 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.1183, allocations: 3.938 kB / 479.7 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.273e-05/0.1184, allocations: 16 kB / 479.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001023/0.1185, allocations: 56.91 kB / 479.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006374/0.1191, allocations: 459.6 kB / 480.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002619/0.1218, allocations: 2.522 MB / 482.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.1222, allocations: 277.2 kB / 483 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.1224, allocations: 142.1 kB / 483.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.1224, allocations: 8 kB / 483.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.1224, allocations: 38.56 kB / 483.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.373e-06/0.1224, allocations: 0 / 483.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002637/0.1251, allocations: 1.571 MB / 484.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.1251, allocations: 93.08 kB / 484.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.1255, allocations: 409.8 kB / 485.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.1256, allocations: 29.7 kB / 485.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.1257, allocations: 307.4 kB / 485.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.802e-05/0.1258, allocations: 110.5 kB / 485.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.647e-05/0.1259, allocations: 4 kB / 485.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.126, allocations: 358.8 kB / 486.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.1262, allocations: 128.8 kB / 486.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002721/0.1265, allocations: 282.9 kB / 486.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/0.1267, allocations: 180.1 kB / 486.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1267, allocations: 0 / 486.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009587/0.1277, allocations: 0.6792 MB / 487.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.1277, allocations: 8 kB / 487.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1277, allocations: 7.938 kB / 487.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003903/0.1281, allocations: 149.6 kB / 487.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.1284, allocations: 83.78 kB / 487.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.1313, allocations: 3.397 MB / 491 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.1315, allocations: 12 kB / 491 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.1315, allocations: 16 kB / 491 MB, free: 6.672 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002516/0.1318, allocations: 241.8 kB / 491.2 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-05/0.1318, allocations: 43.44 kB / 491.3 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000878/0.1327, allocations: 0.5753 MB / 491.9 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1327, allocations: 4 kB / 491.9 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006901/0.1334, allocations: 487.9 kB / 492.3 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1334, allocations: 0 / 492.3 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.1348, allocations: 1.006 MB / 493.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.1348, allocations: 7.953 kB / 493.4 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.135, allocations: 31.98 kB / 493.4 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002358/0.1352, allocations: 92.72 kB / 493.5 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.1352, allocations: 7.984 kB / 493.5 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/0.1369, allocations: 1.87 MB / 495.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.137, allocations: 0 / 495.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008403/0.1378, allocations: 0.6401 MB / 496 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.1379, allocations: 140.6 kB / 496.1 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.898e-05/0.138, allocations: 11.95 kB / 496.1 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.1382, allocations: 11.98 kB / 496.2 MB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.1382, allocations: 15.97 kB / 496.2 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.1382, allocations: 12 kB / 496.2 MB, free: 1.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000298/0.1386, allocations: 303.2 kB / 496.5 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1386, allocations: 0 / 496.5 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004628/0.139, allocations: 116 kB / 496.6 MB, free: 0.7578 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001086/0.1391, allocations: 103.2 kB / 496.7 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008766/0.14, allocations: 0.6148 MB / 497.3 MB, free: 4 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.14, allocations: 0 / 497.3 MB, free: 4 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000415/0.1405, allocations: 295.5 kB / 497.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005877/0.1411, allocations: 105.8 kB / 497.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001774/0.1428, allocations: 1.372 MB / 499.1 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004727/0.1433, allocations: 0.9244 MB / 500 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002391/0.1436, allocations: 76.31 kB / 0.4883 GB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.179e-05/0.1437, allocations: 35.44 kB / 0.4884 GB, free: 13.13 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1437, allocations: 0 / 0.4884 GB, free: 13.13 MB / 382.1 MB Notification: Performance of Templates: time 0.00885/0.1525, allocations: 5.196 MB / 0.4935 GB, free: 7.992 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