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.00155/0.00155, allocations: 116 kB / 16.63 MB, free: 6.812 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.001708/0.001708, allocations: 186 kB / 17.55 MB, free: 5.934 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.417/1.417, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1794/0.1794, allocations: 38.05 MB / 329.4 MB, free: 9.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 60.22 kB / 398.3 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1088, allocations: 58.07 MB / 456.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.00647/0.1154, allocations: 5.173 MB / 461.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002438/0.1178, allocations: 1.674 MB / 463.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003766/0.1182, allocations: 27.81 kB / 463.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004135/0.1186, allocations: 103.3 kB / 463.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006564/0.1193, allocations: 254.7 kB / 463.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.1196, allocations: 91.89 kB / 463.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006281/0.1202, allocations: 0.502 MB / 464.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.1205, allocations: 167.8 kB / 464.3 MB, free: 424 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002319/0.1207, allocations: 199.1 kB / 464.5 MB, free: 224 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002754/0.121, allocations: 219.1 kB / 464.7 MB, free: 4 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.339e-05/0.1211, allocations: 28.05 kB / 464.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.324e-05/0.1211, allocations: 24 kB / 464.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.1212, allocations: 103.7 kB / 464.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.1214, allocations: 190.9 kB / 465.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.1218, allocations: 374.7 kB / 465.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1218, allocations: 0 / 465.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1218, allocations: 0 / 465.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.1218, allocations: 0 / 465.4 MB, free: 15.3 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.001005/0.1228, allocations: 0.6515 MB / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.1229, allocations: 11.89 kB / 466.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.941e-05/0.123, allocations: 44.45 kB / 466.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005754/0.1235, allocations: 387.6 kB / 466.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.1236, allocations: 24.5 kB / 466.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.757e-05/0.1237, allocations: 27.98 kB / 466.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004896/0.1241, allocations: 338.2 kB / 466.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.1242, allocations: 0 / 466.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.1242, allocations: 12 kB / 466.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.1242, allocations: 8 kB / 466.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003194/0.1245, allocations: 209.5 kB / 467.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.1261, allocations: 1.486 MB / 468.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/0.1264, allocations: 194.3 kB / 468.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.1266, allocations: 79.53 kB / 468.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.1266, allocations: 0 / 468.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.1266, allocations: 42.75 kB / 468.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.202e-06/0.1266, allocations: 4 kB / 468.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001077/0.1277, allocations: 0.6701 MB / 469.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.1278, allocations: 140.5 kB / 469.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.1281, allocations: 317.6 kB / 470.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.1281, allocations: 25.7 kB / 470.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1283, allocations: 220.2 kB / 470.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.295e-05/0.1283, allocations: 75.02 kB / 470.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.36e-05/0.1284, allocations: 53.69 kB / 470.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.1285, allocations: 338.8 kB / 470.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.165e-05/0.1286, allocations: 47.97 kB / 470.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.1288, allocations: 148.8 kB / 470.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.1291, allocations: 231.8 kB / 471.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1291, allocations: 3.938 kB / 471.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003559/0.1294, allocations: 245.3 kB / 471.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.1295, allocations: 12 kB / 471.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1295, allocations: 4 kB / 471.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1295, allocations: 7.938 kB / 471.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003615/0.1299, allocations: 83.89 kB / 471.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008872/0.1307, allocations: 1.385 MB / 472.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.1309, allocations: 4.156 kB / 472.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.1309, allocations: 20 kB / 472.9 MB, free: 7.168 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001862/0.1311, allocations: 169.6 kB / 473.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.395e-05/0.1312, allocations: 31.53 kB / 473.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003168/0.1315, allocations: 188.4 kB / 473.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1316, allocations: 0 / 473.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1316, allocations: 4 kB / 473.3 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.1316, allocations: 0 / 473.3 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007164/0.1323, allocations: 0.5484 MB / 473.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.1323, allocations: 0 / 473.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.1325, allocations: 39.98 kB / 473.9 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.1326, allocations: 4 kB / 473.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.1326, allocations: 4 kB / 473.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.1326, allocations: 7.922 kB / 473.9 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1326, allocations: 0 / 473.9 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004263/0.133, allocations: 497.2 kB / 474.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.141e-05/0.1331, allocations: 112.7 kB / 474.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.447e-05/0.1332, allocations: 0 / 474.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.1334, allocations: 8 kB / 474.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.1334, allocations: 23.86 kB / 474.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.1335, allocations: 8 kB / 474.5 MB, free: 5.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001962/0.1337, allocations: 219.2 kB / 474.8 MB, free: 5.227 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1337, allocations: 4 kB / 474.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004147/0.1341, allocations: 60 kB / 474.8 MB, free: 5.164 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001071/0.1342, allocations: 101.9 kB / 474.9 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003786/0.1346, allocations: 176.1 kB / 475.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1346, allocations: 0 / 475.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.1347, allocations: 67.91 kB / 475.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000722/0.1354, allocations: 89.88 kB / 475.2 MB, free: 4.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.1369, allocations: 0.9552 MB / 476.2 MB, free: 3.746 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.1373, allocations: 0.8029 MB / 477 MB, free: 2.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001827/0.1375, allocations: 46.95 kB / 477.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.44e-05/0.1376, allocations: 27.44 kB / 477.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1376, allocations: 0 / 477.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of Templates: time 0.006526/0.1441, allocations: 3.217 MB / 480.3 MB, free: 15.67 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches