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.002039/0.002039, allocations: 116.3 kB / 17.07 MB, free: 5.973 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.002106/0.002105, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.561/1.561, allocations: 222.9 MB / 241.7 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.1834/0.1834, allocations: 38.03 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 59.91 kB / 458.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4468/0.448, allocations: 58.06 MB / 0.5041 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.01195/0.46, allocations: 4.046 MB / 0.5081 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003298/0.4634, allocations: 0.8994 MB / 0.5089 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006255/0.464, allocations: 10.75 kB / 0.5089 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005558/0.4647, allocations: 50.44 kB / 0.509 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001617/0.4663, allocations: 186.8 kB / 0.5092 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006364/0.467, allocations: 91.28 kB / 0.5093 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.4682, allocations: 399.5 kB / 0.5096 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004178/0.4687, allocations: 118.3 kB / 0.5098 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006323/0.4693, allocations: 184.2 kB / 0.5099 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007278/0.4701, allocations: 211 kB / 0.5101 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.4702, allocations: 24.27 kB / 0.5102 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.4704, allocations: 21.53 kB / 0.5102 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002747/0.4707, allocations: 104.4 kB / 0.5103 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004414/0.4712, allocations: 149 kB / 0.5104 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007705/0.472, allocations: 310.5 kB / 0.5107 GB, free: 3.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.472, allocations: 0 / 0.5107 GB, free: 3.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.472, allocations: 1.891 kB / 0.5107 GB, free: 3.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.679e-05/0.472, allocations: 0 / 0.5107 GB, free: 3.551 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.001981/0.474, allocations: 0.627 MB / 0.5113 GB, free: 3.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.4741, allocations: 13.2 kB / 0.5113 GB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.4743, allocations: 31.62 kB / 0.5114 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008853/0.4752, allocations: 342.5 kB / 0.5117 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.4752, allocations: 22.47 kB / 0.5117 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.16e-05/0.4753, allocations: 26.72 kB / 0.5117 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008031/0.4761, allocations: 323.4 kB / 0.5121 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.4761, allocations: 1.406 kB / 0.5121 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.036e-05/0.4762, allocations: 6.469 kB / 0.5121 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.4762, allocations: 5.25 kB / 0.5121 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000698/0.4769, allocations: 218.1 kB / 0.5123 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002429/0.4794, allocations: 1.349 MB / 0.5136 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005244/0.4799, allocations: 144 kB / 0.5137 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.4801, allocations: 59.02 kB / 0.5138 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.4802, allocations: 5.875 kB / 0.5138 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.4802, allocations: 37.12 kB / 0.5138 GB, free: 1.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 2.414e-06/0.4802, allocations: 3.938 kB / 0.5138 GB, free: 1.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.001376/0.4816, allocations: 356.2 kB / 0.5142 GB, free: 1.035 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.4817, allocations: 83.77 kB / 0.5142 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004292/0.4821, allocations: 269.8 kB / 0.5145 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.4821, allocations: 27.36 kB / 0.5145 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.4823, allocations: 199.6 kB / 0.5147 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.929e-05/0.4824, allocations: 48.05 kB / 0.5148 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.4825, allocations: 46.92 kB / 0.5148 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.134e-05/0.4826, allocations: 341.2 kB / 0.5151 GB, free: 184 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.4828, allocations: 54.45 kB / 0.5152 GB, free: 168 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.4831, allocations: 150.5 kB / 0.5153 GB, free: 20 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000572/0.4837, allocations: 235.7 kB / 0.5156 GB, free: 15.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.4837, allocations: 1.781 kB / 0.5156 GB, free: 15.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007576/0.4845, allocations: 248 kB / 0.5158 GB, free: 15.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.4845, allocations: 6.547 kB / 0.5158 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.4845, allocations: 3.438 kB / 0.5158 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/0.4846, allocations: 5.625 kB / 0.5158 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.4849, allocations: 51.91 kB / 0.5159 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.278e-05/0.485, allocations: 8.844 kB / 0.5159 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.4853, allocations: 14.75 kB / 0.5159 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-05/0.4853, allocations: 9.734 kB / 0.5159 GB, free: 15.69 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.0002913/0.4856, allocations: 160.7 kB / 0.516 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.811e-05/0.4857, allocations: 23.47 kB / 0.5161 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005937/0.4863, allocations: 195.6 kB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.4864, allocations: 2.438 kB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.4864, allocations: 1.406 kB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4864, allocations: 1.359 kB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001243/0.4877, allocations: 0.5562 MB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/0.4877, allocations: 6.375 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.488, allocations: 30.06 kB / 0.5168 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-06/0.488, allocations: 5.375 kB / 0.5168 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.488, allocations: 6.25 kB / 0.5168 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.18e-05/0.488, allocations: 5.703 kB / 0.5169 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4881, allocations: 1.156 kB / 0.5169 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006527/0.4887, allocations: 289 kB / 0.5171 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.4889, allocations: 100.9 kB / 0.5172 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.161e-05/0.489, allocations: 6.156 kB / 0.5172 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.4892, allocations: 6.516 kB / 0.5172 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.444e-05/0.4893, allocations: 21.14 kB / 0.5173 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-05/0.4893, allocations: 4.047 kB / 0.5173 GB, free: 14.69 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003434/0.4897, allocations: 184.6 kB / 0.5174 GB, free: 14.58 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4897, allocations: 4 kB / 0.5174 GB, free: 14.58 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006121/0.4903, allocations: 48.19 kB / 0.5175 GB, free: 14.57 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.0001868/0.4905, allocations: 103.7 kB / 0.5176 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006284/0.4912, allocations: 158 kB / 0.5177 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.4912, allocations: 0.5312 kB / 0.5177 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002492/0.4914, allocations: 82.53 kB / 0.5178 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008628/0.4923, allocations: 54.8 kB / 0.5179 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.4943, allocations: 0.5136 MB / 0.5184 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007375/0.495, allocations: 0.7829 MB / 0.5191 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003236/0.4954, allocations: 43.28 kB / 0.5192 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.4955, allocations: 23.28 kB / 0.5192 GB, free: 13.35 MB / 398.1 MB Notification: Performance of SimCode: time 9.81e-07/0.4955, allocations: 4 kB / 0.5192 GB, free: 13.35 MB / 398.1 MB Notification: Performance of Templates: time 0.009213/0.5048, allocations: 2.257 MB / 0.5214 GB, free: 13.15 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/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