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.001436/0.001436, allocations: 108.1 kB / 17.06 MB, free: 6.137 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.001636/0.001636, allocations: 187.1 kB / 18 MB, free: 5.219 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1904/0.1904, allocations: 38.05 MB / 329.9 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.91 kB / 458.2 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.3854, allocations: 58.05 MB / 0.5041 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.006056/0.3915, allocations: 4.506 MB / 0.5085 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002566/0.3941, allocations: 1.401 MB / 0.5099 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003249/0.3945, allocations: 15.91 kB / 0.5099 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.3955, allocations: 305.5 kB / 0.5102 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008359/0.3963, allocations: 279.8 kB / 0.5104 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.3974, allocations: 252.9 kB / 0.5107 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.3984, allocations: 0.6637 MB / 0.5113 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004545/0.3989, allocations: 246.7 kB / 0.5116 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005669/0.3994, allocations: 304.1 kB / 0.5119 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006968/0.4001, allocations: 405.3 kB / 0.5122 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.4003, allocations: 46.41 kB / 0.5123 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005922/0.4009, allocations: 220.2 kB / 0.5125 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003066/0.4012, allocations: 257.9 kB / 0.5127 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003183/0.4015, allocations: 284.2 kB / 0.513 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.4027, allocations: 0.7574 MB / 0.5138 GB, free: 1.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.4027, allocations: 0 / 0.5138 GB, free: 1.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4027, allocations: 0 / 0.5138 GB, free: 1.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.4027, allocations: 1.375 kB / 0.5138 GB, free: 1.973 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001626/0.4044, allocations: 0.8787 MB / 0.5146 GB, free: 1.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.4044, allocations: 17.8 kB / 0.5146 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005857/0.405, allocations: 101.2 kB / 0.5147 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006213/0.4057, allocations: 437.5 kB / 0.5151 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.4057, allocations: 29.53 kB / 0.5152 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.4058, allocations: 47.7 kB / 0.5152 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.4072, allocations: 0.8582 MB / 0.5161 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.4073, allocations: 5.094 kB / 0.5161 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.821e-05/0.4073, allocations: 20.77 kB / 0.5161 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001802/0.4075, allocations: 59.89 kB / 0.5161 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.4089, allocations: 0.7982 MB / 0.5169 GB, free: 320 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00371/0.4126, allocations: 2.715 MB / 0.5196 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008876/0.4135, allocations: 0.5812 MB / 0.5201 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005603/0.4141, allocations: 452 kB / 0.5206 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.565e-05/0.4142, allocations: 14.62 kB / 0.5206 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.4142, allocations: 36.91 kB / 0.5206 GB, free: 13.97 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.605e-06/0.4142, allocations: 0 / 0.5206 GB, free: 13.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003029/0.4172, allocations: 1.881 MB / 0.5225 GB, free: 13.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.739e-05/0.4174, allocations: 138.9 kB / 0.5226 GB, free: 13.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003719/0.4177, allocations: 299.3 kB / 0.5229 GB, free: 12.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.4178, allocations: 31.08 kB / 0.5229 GB, free: 12.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.418, allocations: 260.2 kB / 0.5232 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.4181, allocations: 186.6 kB / 0.5233 GB, free: 12.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.4183, allocations: 98.47 kB / 0.5234 GB, free: 12.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.4185, allocations: 354.4 kB / 0.5238 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004683/0.4189, allocations: 344.5 kB / 0.5241 GB, free: 12.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005624/0.4195, allocations: 491 kB / 0.5246 GB, free: 11.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.4207, allocations: 0.9847 MB / 0.5255 GB, free: 11.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.4207, allocations: 1.125 kB / 0.5255 GB, free: 11.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00159/0.4223, allocations: 0.9798 MB / 0.5265 GB, free: 10.87 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.641e-05/0.4224, allocations: 77.38 kB / 0.5266 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.4225, allocations: 8.703 kB / 0.5266 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002058/0.4227, allocations: 41.42 kB / 0.5266 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003612/0.423, allocations: 82.12 kB / 0.5267 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/0.4244, allocations: 1.549 MB / 0.5282 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004112/0.4248, allocations: 38.41 kB / 0.5282 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.306e-05/0.4249, allocations: 27.09 kB / 0.5283 GB, free: 9.32 MB / 398.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.0004682/0.4254, allocations: 306.3 kB / 0.5285 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.4255, allocations: 45.7 kB / 0.5286 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001629/0.4271, allocations: 1.081 MB / 0.5296 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.82e-05/0.4272, allocations: 15.5 kB / 0.5297 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4272, allocations: 4.812 kB / 0.5297 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.4272, allocations: 3.281 kB / 0.5297 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002684/0.4299, allocations: 1.797 MB / 0.5314 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.4299, allocations: 2.047 kB / 0.5314 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000273/0.4302, allocations: 50.41 kB / 0.5315 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001225/0.4303, allocations: 41.31 kB / 0.5315 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.801e-05/0.4304, allocations: 12.47 kB / 0.5315 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.4317, allocations: 1.546 MB / 0.533 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.4317, allocations: 5 kB / 0.533 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.4335, allocations: 1.174 MB / 0.5342 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000273/0.4338, allocations: 176.4 kB / 0.5344 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.4339, allocations: 15.05 kB / 0.5344 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003169/0.4342, allocations: 26.31 kB / 0.5344 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.4344, allocations: 48.41 kB / 0.5344 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.877e-05/0.4344, allocations: 17.8 kB / 0.5345 GB, free: 5.586 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000253/0.4347, allocations: 203.9 kB / 0.5346 GB, free: 5.445 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4347, allocations: 0 / 0.5346 GB, free: 5.445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000803/0.4355, allocations: 143.7 kB / 0.5348 GB, free: 5.43 MB / 398.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.000311/0.4358, allocations: 160.9 kB / 0.5349 GB, free: 5.297 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.4377, allocations: 1.366 MB / 0.5363 GB, free: 4.539 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4378, allocations: 4.062 kB / 0.5363 GB, free: 4.535 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.4389, allocations: 0.9258 MB / 0.5372 GB, free: 3.961 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006753/0.4396, allocations: 66 kB / 0.5372 GB, free: 3.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/0.4419, allocations: 1.382 MB / 0.5386 GB, free: 3.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005538/0.4425, allocations: 0.9018 MB / 0.5395 GB, free: 2.383 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002927/0.4428, allocations: 99.81 kB / 0.5396 GB, free: 2.348 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.96e-05/0.4429, allocations: 27.09 kB / 0.5396 GB, free: 2.34 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4429, allocations: 5.344 kB / 0.5396 GB, free: 2.336 MB / 398.1 MB Notification: Performance of Templates: time 0.01209/0.455, allocations: 6.12 MB / 0.5456 GB, free: 13.12 MB / 414.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Sensor.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches