Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 101.7 kB / 16.5 MB, free: 6.652 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.001557/0.001557, allocations: 194.4 kB / 17.42 MB, free: 6.066 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.387/1.387, allocations: 222.9 MB / 241.1 MB, free: 13.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1793/0.1793, allocations: 38.03 MB / 329.3 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 63.84 kB / 398.1 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1094, allocations: 58.07 MB / 456.2 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.006231/0.1157, allocations: 4.69 MB / 460.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.1178, allocations: 1.079 MB / 461.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002679/0.1181, allocations: 27.81 kB / 462 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002365/0.1183, allocations: 39.69 kB / 462 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004695/0.1188, allocations: 155.2 kB / 462.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002229/0.1191, allocations: 83.91 kB / 462.2 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005217/0.1196, allocations: 0.5647 MB / 462.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.1198, allocations: 105.7 kB / 462.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.1201, allocations: 155.2 kB / 463.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000401/0.1205, allocations: 211.3 kB / 463.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.299e-05/0.1206, allocations: 19.94 kB / 463.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.308e-05/0.1206, allocations: 16 kB / 463.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.1208, allocations: 99.7 kB / 463.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1209, allocations: 143.2 kB / 463.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003266/0.1213, allocations: 306.9 kB / 463.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1213, allocations: 0 / 463.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1213, allocations: 3.938 kB / 463.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1213, allocations: 0 / 463.8 MB, free: 0.8008 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001217/0.1225, allocations: 0.6283 MB / 464.5 MB, free: 128 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.1226, allocations: 8.031 kB / 464.5 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.358e-05/0.1226, allocations: 32.56 kB / 464.5 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004472/0.1231, allocations: 315.1 kB / 464.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.1231, allocations: 16.94 kB / 464.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.287e-05/0.1232, allocations: 28.12 kB / 464.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005316/0.1237, allocations: 320.5 kB / 465.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1237, allocations: 0 / 465.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.1238, allocations: 8 kB / 465.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.1238, allocations: 8 kB / 465.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003773/0.1242, allocations: 217.5 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.1259, allocations: 1.352 MB / 466.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003353/0.1263, allocations: 145.2 kB / 466.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.362e-05/0.1264, allocations: 57.75 kB / 466.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.1264, allocations: 7.984 kB / 467 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.1265, allocations: 38.56 kB / 467 MB, free: 13.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.263e-06/0.1265, allocations: 0 / 467 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008234/0.1273, allocations: 364.2 kB / 467.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/0.1274, allocations: 77.11 kB / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.1276, allocations: 262.9 kB / 467.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.1277, allocations: 29.7 kB / 467.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.1279, allocations: 207.7 kB / 467.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.017e-05/0.1279, allocations: 43.45 kB / 468 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.32e-05/0.128, allocations: 49.55 kB / 468 MB, free: 12.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002056/0.1282, allocations: 342.8 kB / 468.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.1283, allocations: 51.97 kB / 468.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.1285, allocations: 149.7 kB / 468.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003007/0.1288, allocations: 236.8 kB / 468.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1288, allocations: 0 / 468.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003789/0.1292, allocations: 249.4 kB / 469 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.1293, allocations: 8 kB / 469 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.1293, allocations: 7.938 kB / 469 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.1293, allocations: 4 kB / 469 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.1295, allocations: 51.89 kB / 469.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.1295, allocations: 4 kB / 469.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.1297, allocations: 8 kB / 469.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.1297, allocations: 11.98 kB / 469.1 MB, free: 11.12 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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001784/0.1299, allocations: 166.1 kB / 469.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/0.1299, allocations: 23.78 kB / 469.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003524/0.1303, allocations: 203.2 kB / 469.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1303, allocations: 3.938 kB / 469.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1303, allocations: 0 / 469.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1303, allocations: 0 / 469.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006971/0.131, allocations: 0.561 MB / 470.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.131, allocations: 0 / 470.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.1312, allocations: 32.02 kB / 470.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1312, allocations: 0 / 470.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.1312, allocations: 4 kB / 470.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.1312, allocations: 11.92 kB / 470.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.1312, allocations: 0 / 470.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000328/0.1316, allocations: 288.8 kB / 470.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.043e-05/0.1316, allocations: 104.7 kB / 470.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/0.1317, allocations: 4 kB / 470.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.1318, allocations: 15.92 kB / 470.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.1318, allocations: 11.98 kB / 470.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.1319, allocations: 4 kB / 470.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001702/0.132, allocations: 182 kB / 470.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.132, allocations: 4 kB / 470.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.1324, allocations: 48 kB / 470.7 MB, free: 9.363 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * 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.0001121/0.1325, allocations: 103.2 kB / 470.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002736/0.1328, allocations: 147.8 kB / 471 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1328, allocations: 4 kB / 471 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.1329, allocations: 79.83 kB / 471.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004942/0.1334, allocations: 57.8 kB / 471.1 MB, free: 8.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008624/0.1343, allocations: 0.6285 MB / 471.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.1346, allocations: 0.7833 MB / 472.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001448/0.1348, allocations: 46.25 kB / 472.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.575e-05/0.1349, allocations: 19.44 kB / 472.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1349, allocations: 0 / 472.6 MB, free: 7.43 MB / 350.1 MB Notification: Performance of Templates: time 0.005294/0.1402, allocations: 2.122 MB / 474.7 MB, free: 5.332 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches