Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008801/0.0008804, allocations: 97 kB / 16.3 MB, free: 5.531 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.0008705/0.0008706, allocations: 181.9 kB / 17.2 MB, free: 5.465 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.29/1.29, allocations: 223.2 MB / 241.1 MB, free: 14.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1562/0.1562, allocations: 38.07 MB / 330.3 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.000323, allocations: 12 kB / 400 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1085, allocations: 59.16 MB / 459.1 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004981/0.1135, allocations: 4.399 MB / 463.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.1158, allocations: 1.555 MB / 465.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002405/0.1161, allocations: 27.81 kB / 465.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003381/0.1164, allocations: 111.4 kB / 465.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006538/0.1171, allocations: 279.1 kB / 465.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002856/0.1174, allocations: 123.8 kB / 465.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004967/0.1179, allocations: 327.3 kB / 465.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.1181, allocations: 106.6 kB / 466 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.1183, allocations: 159.4 kB / 466.2 MB, free: 360 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.1185, allocations: 151.3 kB / 466.3 MB, free: 208 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.1186, allocations: 16 kB / 466.4 MB, free: 192 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.349e-05/0.1186, allocations: 12 kB / 466.4 MB, free: 180 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.284e-05/0.1187, allocations: 83.72 kB / 466.4 MB, free: 96 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.835e-05/0.1188, allocations: 93.59 kB / 466.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.1191, allocations: 291.1 kB / 466.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1191, allocations: 0 / 466.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.116e-05/0.1191, allocations: 0 / 466.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1191, allocations: 3.938 kB / 466.8 MB, free: 15.71 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009334/0.12, allocations: 0.5853 MB / 467.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1201, allocations: 16.03 kB / 467.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.527e-05/0.1202, allocations: 39.53 kB / 467.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005894/0.1208, allocations: 370.5 kB / 467.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.1208, allocations: 20.56 kB / 467.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.087e-05/0.1209, allocations: 31.95 kB / 467.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.1213, allocations: 330.2 kB / 468.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1214, allocations: 7.938 kB / 468.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/0.1214, allocations: 8 kB / 468.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1214, allocations: 11.94 kB / 468.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.1217, allocations: 201.5 kB / 468.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.1232, allocations: 1.49 MB / 469.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003587/0.1235, allocations: 198.3 kB / 470.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.1236, allocations: 4.125 kB / 470.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.1236, allocations: 38.56 kB / 470.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 3.196e-06/0.1236, allocations: 3.938 kB / 470.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001003/0.1246, allocations: 0.6784 MB / 470.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.386e-05/0.1247, allocations: 136.5 kB / 471 MB, free: 11.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.125, allocations: 309.7 kB / 471.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.125, allocations: 29.7 kB / 471.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1252, allocations: 215.8 kB / 471.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.077e-05/0.1253, allocations: 74.98 kB / 471.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.074e-05/0.1253, allocations: 4 kB / 471.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1254, allocations: 342.9 kB / 471.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.378e-05/0.1255, allocations: 47.97 kB / 472 MB, free: 10.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.1257, allocations: 152.8 kB / 472.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.1258, allocations: 75.03 kB / 472.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1258, allocations: 3.953 kB / 472.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003514/0.1262, allocations: 252.9 kB / 472.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1262, allocations: 8 kB / 472.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.1262, allocations: 4.438 kB / 472.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1262, allocations: 8 kB / 472.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003441/0.1266, allocations: 79.89 kB / 472.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008492/0.1274, allocations: 1.29 MB / 473.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.1276, allocations: 8 kB / 473.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.1276, allocations: 11.98 kB / 473.8 MB, free: 8.109 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.1278, allocations: 169.7 kB / 474 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.586e-05/0.1279, allocations: 31.62 kB / 474 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002927/0.1282, allocations: 184.7 kB / 474.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.1282, allocations: 4 kB / 474.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.1282, allocations: 0 / 474.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1282, allocations: 0 / 474.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007264/0.1289, allocations: 0.5412 MB / 474.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1289, allocations: 0 / 474.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.1292, allocations: 51.95 kB / 474.8 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1292, allocations: 7.969 kB / 474.8 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.1292, allocations: 4 kB / 474.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1292, allocations: 0 / 474.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1292, allocations: 0 / 474.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004438/0.1297, allocations: 0.53 MB / 475.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.938e-05/0.1297, allocations: 100.7 kB / 475.5 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.729e-05/0.1298, allocations: 8.031 kB / 475.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.13, allocations: 8 kB / 475.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.13, allocations: 19.88 kB / 475.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.1301, allocations: 8 kB / 475.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001806/0.1302, allocations: 219.2 kB / 475.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1302, allocations: 4 kB / 475.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003874/0.1306, allocations: 59.94 kB / 475.8 MB, free: 6.055 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.303e-05/0.1307, allocations: 103.2 kB / 475.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003096/0.1311, allocations: 152.5 kB / 476 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1311, allocations: 0 / 476 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.788e-05/0.1312, allocations: 71.98 kB / 476.1 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005185/0.1317, allocations: 76.64 kB / 476.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.1331, allocations: 1.017 MB / 477.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.1334, allocations: 0.807 MB / 478 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.1336, allocations: 50.94 kB / 478 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.272e-05/0.1337, allocations: 35.36 kB / 478.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1337, allocations: 0 / 478.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of Templates: time 0.006308/0.14, allocations: 2.943 MB / 481 MB, free: 0.7773 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches