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.001451/0.001451, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.00169/0.00169, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.442/1.442, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1784/0.1784, allocations: 38.04 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 64.75 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1022, allocations: 58.06 MB / 456.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005814/0.108, allocations: 4.044 MB / 460.9 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.1096, allocations: 0.9114 MB / 461.8 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002531/0.1099, allocations: 7.938 kB / 461.8 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002555/0.1102, allocations: 47.56 kB / 461.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006986/0.1109, allocations: 179 kB / 462 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003148/0.1112, allocations: 91.81 kB / 462.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000561/0.1118, allocations: 406.5 kB / 462.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002692/0.1121, allocations: 114.2 kB / 462.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003633/0.1125, allocations: 179.2 kB / 462.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000443/0.1129, allocations: 199.3 kB / 463 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.589e-05/0.113, allocations: 20 kB / 463 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.027e-05/0.1131, allocations: 28 kB / 463.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.1132, allocations: 107.7 kB / 463.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/0.1134, allocations: 151.2 kB / 463.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003688/0.1138, allocations: 306.8 kB / 463.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1138, allocations: 0 / 463.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1138, allocations: 0 / 463.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.756e-05/0.1139, allocations: 0 / 463.6 MB, free: 1.285 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.001137/0.115, allocations: 0.6245 MB / 464.2 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1151, allocations: 11.89 kB / 464.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.895e-05/0.1152, allocations: 40.45 kB / 464.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004158/0.1156, allocations: 327 kB / 464.6 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.1156, allocations: 12.94 kB / 464.6 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.703e-05/0.1156, allocations: 28.12 kB / 464.6 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000475/0.1161, allocations: 316.5 kB / 465 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.1161, allocations: 0 / 465 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/0.1162, allocations: 12 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1162, allocations: 4 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003644/0.1166, allocations: 221.5 kB / 465.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.1182, allocations: 1.356 MB / 466.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.1186, allocations: 145.1 kB / 466.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.712e-05/0.1187, allocations: 61.97 kB / 466.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.1187, allocations: 11.88 kB / 466.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.1187, allocations: 34.56 kB / 466.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.1188, allocations: 0 / 466.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007993/0.1196, allocations: 364.2 kB / 467.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.1196, allocations: 81.11 kB / 467.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.1199, allocations: 255 kB / 467.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.1199, allocations: 33.64 kB / 467.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.12, allocations: 203.7 kB / 467.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.426e-05/0.1201, allocations: 47.34 kB / 467.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-05/0.1202, allocations: 49.69 kB / 467.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1203, allocations: 338.8 kB / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.406e-05/0.1204, allocations: 47.97 kB / 468.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.1205, allocations: 157.7 kB / 468.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000293/0.1208, allocations: 228.7 kB / 468.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1209, allocations: 0 / 468.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003712/0.1212, allocations: 249.3 kB / 468.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1213, allocations: 12.09 kB / 468.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.1213, allocations: 4 kB / 468.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.1213, allocations: 4 kB / 468.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001842/0.1215, allocations: 47.91 kB / 468.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.1215, allocations: 7.938 kB / 468.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.1216, allocations: 11.91 kB / 468.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.1217, allocations: 16 kB / 468.9 MB, free: 11.58 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.0001563/0.1218, allocations: 161.6 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.105e-05/0.1219, allocations: 27.72 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003455/0.1222, allocations: 195.3 kB / 469.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1223, allocations: 0 / 469.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1223, allocations: 0 / 469.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1223, allocations: 4 kB / 469.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006774/0.123, allocations: 0.5538 MB / 469.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.123, allocations: 0 / 469.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.1231, allocations: 35.91 kB / 469.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.1231, allocations: 8.016 kB / 469.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.1232, allocations: 4 kB / 469.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.1232, allocations: 3.938 kB / 469.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1232, allocations: 0 / 469.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000313/0.1235, allocations: 296 kB / 470.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.387e-05/0.1236, allocations: 100.7 kB / 470.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.1236, allocations: 8 kB / 470.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.1237, allocations: 7.938 kB / 470.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.823e-05/0.1238, allocations: 7.984 kB / 470.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.1238, allocations: 12 kB / 470.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000155/0.124, allocations: 185.9 kB / 470.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.124, allocations: 0 / 470.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000339/0.1243, allocations: 52 kB / 470.5 MB, free: 9.824 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.0001143/0.1244, allocations: 107.2 kB / 470.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003155/0.1248, allocations: 166.5 kB / 470.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.1248, allocations: 0 / 470.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.1249, allocations: 83.83 kB / 470.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.1254, allocations: 56.44 kB / 470.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.1264, allocations: 0.5152 MB / 471.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.1269, allocations: 0.7831 MB / 472.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001637/0.127, allocations: 42.27 kB / 472.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.732e-05/0.1271, allocations: 19.44 kB / 472.3 MB, free: 8 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1271, allocations: 0 / 472.3 MB, free: 8 MB / 350.1 MB Notification: Performance of Templates: time 0.005586/0.1327, allocations: 2.24 MB / 474.5 MB, free: 5.785 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