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.001227/0.001227, allocations: 109.9 kB / 17.74 MB, free: 5.359 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.001262/0.001262, allocations: 181.5 kB / 18.66 MB, free: 4.449 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.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1804/0.1804, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 59.91 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3512, allocations: 58.05 MB / 0.5048 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004972/0.3562, allocations: 4.047 MB / 0.5087 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3577, allocations: 0.8983 MB / 0.5096 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002038/0.3579, allocations: 11.28 kB / 0.5096 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002449/0.3582, allocations: 50.44 kB / 0.5096 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005542/0.3588, allocations: 184.7 kB / 0.5098 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002638/0.3591, allocations: 91.03 kB / 0.5099 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004954/0.3596, allocations: 395.7 kB / 0.5103 GB, free: 3.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.3598, allocations: 126.5 kB / 0.5104 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.3601, allocations: 189 kB / 0.5106 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003734/0.3605, allocations: 201 kB / 0.5108 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.121e-05/0.3606, allocations: 21.03 kB / 0.5108 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.258e-05/0.3606, allocations: 20.75 kB / 0.5108 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.3608, allocations: 109.2 kB / 0.5109 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.361, allocations: 149.6 kB / 0.5111 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003988/0.3614, allocations: 310.6 kB / 0.5114 GB, free: 3.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3614, allocations: 4 kB / 0.5114 GB, free: 3.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3614, allocations: 0 / 0.5114 GB, free: 3.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.3614, allocations: 1.281 kB / 0.5114 GB, free: 3.473 MB / 382.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.001045/0.3625, allocations: 0.6232 MB / 0.512 GB, free: 2.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.3625, allocations: 12.86 kB / 0.512 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.879e-05/0.3626, allocations: 40.28 kB / 0.512 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000425/0.363, allocations: 338.9 kB / 0.5124 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.363, allocations: 18.98 kB / 0.5124 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/0.3631, allocations: 26 kB / 0.5124 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004669/0.3636, allocations: 314.6 kB / 0.5127 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.3636, allocations: 5.375 kB / 0.5127 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.906e-05/0.3636, allocations: 14.5 kB / 0.5127 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.3636, allocations: 5.5 kB / 0.5127 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.364, allocations: 209.8 kB / 0.5129 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.3654, allocations: 1.357 MB / 0.5142 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.3658, allocations: 143.9 kB / 0.5144 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.967e-05/0.3659, allocations: 59.61 kB / 0.5144 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.366, allocations: 2.219 kB / 0.5144 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.223e-05/0.366, allocations: 40.84 kB / 0.5145 GB, free: 1.141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.653e-06/0.366, allocations: 7.938 kB / 0.5145 GB, free: 1.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008047/0.3668, allocations: 360.4 kB / 0.5148 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.3668, allocations: 78.95 kB / 0.5149 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.3671, allocations: 266.1 kB / 0.5152 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.3671, allocations: 30.83 kB / 0.5152 GB, free: 0.668 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.3672, allocations: 198.8 kB / 0.5154 GB, free: 0.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.314e-05/0.3673, allocations: 46.88 kB / 0.5154 GB, free: 476 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.985e-05/0.3673, allocations: 53.69 kB / 0.5155 GB, free: 436 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.946e-05/0.3674, allocations: 336.8 kB / 0.5158 GB, free: 104 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.542e-05/0.3675, allocations: 54.09 kB / 0.5158 GB, free: 88 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.3677, allocations: 154.4 kB / 0.516 GB, free: 15.94 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.368, allocations: 233.3 kB / 0.5162 GB, free: 15.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.368, allocations: 1.031 kB / 0.5162 GB, free: 15.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000389/0.3684, allocations: 251.1 kB / 0.5165 GB, free: 15.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3684, allocations: 7.531 kB / 0.5165 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3684, allocations: 3.75 kB / 0.5165 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.3685, allocations: 8.75 kB / 0.5165 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.3687, allocations: 48.44 kB / 0.5165 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.3687, allocations: 4.953 kB / 0.5165 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.3688, allocations: 9.719 kB / 0.5165 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.3689, allocations: 14.08 kB / 0.5165 GB, free: 15.62 MB / 398.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.0001838/0.369, allocations: 161.1 kB / 0.5167 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.115e-05/0.3691, allocations: 24.3 kB / 0.5167 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003377/0.3694, allocations: 197.1 kB / 0.5169 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3695, allocations: 5.984 kB / 0.5169 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3695, allocations: 1.406 kB / 0.5169 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.3695, allocations: 0.9844 kB / 0.5169 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007398/0.3702, allocations: 0.5527 MB / 0.5175 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3702, allocations: 5.5 kB / 0.5175 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.3704, allocations: 30.17 kB / 0.5175 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3704, allocations: 1.812 kB / 0.5175 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.3704, allocations: 2.281 kB / 0.5175 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.3704, allocations: 6.562 kB / 0.5175 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3704, allocations: 7.969 kB / 0.5175 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003631/0.3708, allocations: 285.5 kB / 0.5178 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.205e-05/0.3709, allocations: 104.1 kB / 0.5179 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.3709, allocations: 2.5 kB / 0.5179 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.3711, allocations: 10.52 kB / 0.5179 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.3711, allocations: 13.47 kB / 0.5179 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.3711, allocations: 8.656 kB / 0.5179 GB, free: 14.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002295/0.3714, allocations: 183.1 kB / 0.5181 GB, free: 14.51 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3714, allocations: 0.5625 kB / 0.5181 GB, free: 14.51 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003551/0.3717, allocations: 48.62 kB / 0.5181 GB, free: 14.5 MB / 398.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.0001244/0.3719, allocations: 107.8 kB / 0.5182 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003417/0.3722, allocations: 167 kB / 0.5184 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.3722, allocations: 0.625 kB / 0.5184 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.3724, allocations: 71.77 kB / 0.5185 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.3729, allocations: 57.61 kB / 0.5185 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.3739, allocations: 0.5539 MB / 0.5191 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/0.3744, allocations: 0.7871 MB / 0.5198 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.537e-05/0.3745, allocations: 23.58 kB / 0.5199 GB, free: 13.25 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3745, allocations: 1.406 kB / 0.5199 GB, free: 13.25 MB / 398.1 MB Notification: Performance of Templates: time 0.006504/0.381, allocations: 3.189 MB / 0.523 GB, free: 12.95 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/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