Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor") translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 111.4 kB / 17.7 MB, free: 5.387 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.001673/0.001673, allocations: 184.1 kB / 18.63 MB, free: 4.461 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.497/1.497, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1895/0.1895, allocations: 38.03 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002486/0.002487, allocations: 60.66 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1414, allocations: 58.06 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.007218/0.1487, allocations: 4.514 MB / 462.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.1514, allocations: 1.41 MB / 464.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002918/0.1517, allocations: 11.94 kB / 464.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.1528, allocations: 290.6 kB / 464.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006676/0.1534, allocations: 282.7 kB / 464.8 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007302/0.1542, allocations: 259.4 kB / 465.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007435/0.1549, allocations: 0.6586 MB / 465.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004518/0.1554, allocations: 248 kB / 466 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004161/0.1558, allocations: 298.9 kB / 466.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006284/0.1565, allocations: 414.8 kB / 466.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.522e-05/0.1566, allocations: 48 kB / 466.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004071/0.157, allocations: 215.6 kB / 466.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002471/0.1572, allocations: 243.4 kB / 467.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00031/0.1576, allocations: 298.5 kB / 467.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000813/0.1584, allocations: 0.7437 MB / 468.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1584, allocations: 0 / 468.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.1584, allocations: 0 / 468.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.1584, allocations: 0 / 468.2 MB, free: 13.42 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001629/0.1601, allocations: 0.8913 MB / 469.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.1601, allocations: 11.89 kB / 469.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005639/0.1607, allocations: 92.17 kB / 469.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007734/0.1615, allocations: 443.8 kB / 469.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.1615, allocations: 33.36 kB / 469.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.774e-05/0.1616, allocations: 40.12 kB / 469.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.1628, allocations: 0.8629 MB / 470.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.1629, allocations: 7.938 kB / 470.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.933e-05/0.1629, allocations: 15.94 kB / 470.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000129/0.1631, allocations: 68.95 kB / 470.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.1642, allocations: 0.7924 MB / 471.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003638/0.1678, allocations: 2.702 MB / 474.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009317/0.1688, allocations: 0.5876 MB / 474.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005372/0.1693, allocations: 450.7 kB / 475.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.1694, allocations: 7.984 kB / 475.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.02e-05/0.1694, allocations: 42.55 kB / 475.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.885e-06/0.1694, allocations: 3.938 kB / 475.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003011/0.1725, allocations: 1.887 MB / 477.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.419e-05/0.1726, allocations: 138.8 kB / 477.2 MB, free: 3.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.1729, allocations: 292.5 kB / 477.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.1729, allocations: 33.7 kB / 477.6 MB, free: 3.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.1731, allocations: 260.4 kB / 477.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.1732, allocations: 185.2 kB / 478 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001648/0.1734, allocations: 102.1 kB / 478.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1736, allocations: 354.7 kB / 478.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004419/0.174, allocations: 344.9 kB / 478.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000529/0.1746, allocations: 485.7 kB / 479.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.1757, allocations: 0.976 MB / 480.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.399e-05/0.1758, allocations: 8 kB / 480.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001422/0.1772, allocations: 0.9771 MB / 481.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.526e-05/0.1773, allocations: 81.66 kB / 481.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.1773, allocations: 4 kB / 481.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002062/0.1775, allocations: 36.84 kB / 481.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003523/0.1779, allocations: 83.88 kB / 481.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.1792, allocations: 1.551 MB / 483 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.1796, allocations: 35.97 kB / 483 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.586e-05/0.1796, allocations: 27.98 kB / 483 MB, free: 13.88 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004252/0.1801, allocations: 303.3 kB / 483.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.1802, allocations: 43.53 kB / 483.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.1818, allocations: 1.084 MB / 484.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.521e-05/0.1819, allocations: 12 kB / 484.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1819, allocations: 0 / 484.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.1819, allocations: 4.141 kB / 484.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003129/0.185, allocations: 1.804 MB / 486.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.185, allocations: 0 / 486.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002693/0.1853, allocations: 55.95 kB / 486.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001526/0.1855, allocations: 40.77 kB / 486.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.964e-05/0.1855, allocations: 12 kB / 486.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001646/0.1872, allocations: 1.547 MB / 487.9 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1872, allocations: 0 / 487.9 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.189, allocations: 1.183 MB / 489.1 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003164/0.1893, allocations: 172.6 kB / 489.3 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.85e-05/0.1894, allocations: 15.98 kB / 489.3 MB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.1896, allocations: 23.97 kB / 489.3 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.1898, allocations: 47.89 kB / 489.4 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.428e-05/0.1899, allocations: 19.98 kB / 489.4 MB, free: 7.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002573/0.1901, allocations: 203.1 kB / 489.6 MB, free: 7.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1901, allocations: 0 / 489.6 MB, free: 7.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007/0.1908, allocations: 140 kB / 489.7 MB, free: 6.883 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003669/0.1912, allocations: 147.2 kB / 489.9 MB, free: 6.727 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001934/0.1932, allocations: 1.382 MB / 491.2 MB, free: 5.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.1932, allocations: 0 / 491.2 MB, free: 5.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.1944, allocations: 0.9291 MB / 492.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006584/0.1951, allocations: 72.5 kB / 492.2 MB, free: 4.297 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.1974, allocations: 1.385 MB / 493.6 MB, free: 2.875 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005465/0.198, allocations: 0.8976 MB / 494.5 MB, free: 1.949 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.1983, allocations: 107.2 kB / 494.6 MB, free: 1.844 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.698e-05/0.1984, allocations: 27.44 kB / 494.7 MB, free: 1.816 MB / 366.1 MB Notification: Performance of SimCode: time 1.293e-06/0.1984, allocations: 0 / 494.7 MB, free: 1.816 MB / 366.1 MB Notification: Performance of Templates: time 0.01267/0.2111, allocations: 6.007 MB / 0.4889 GB, free: 11.84 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches