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.001291/0.001291, allocations: 112.7 kB / 17.06 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.001319/0.001319, 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.53/1.53, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1738/0.1738, allocations: 38.04 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.91 kB / 458.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4587/0.46, allocations: 58.05 MB / 0.5041 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.006233/0.4663, allocations: 4.514 MB / 0.5085 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002713/0.469, allocations: 1.407 MB / 0.5099 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.4693, allocations: 12.44 kB / 0.5099 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.4704, allocations: 294.6 kB / 0.5102 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000729/0.4711, allocations: 281.5 kB / 0.5104 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007927/0.4719, allocations: 260.2 kB / 0.5107 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008526/0.4728, allocations: 0.6612 MB / 0.5113 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006169/0.4734, allocations: 244.7 kB / 0.5116 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006165/0.4741, allocations: 301.9 kB / 0.5119 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008245/0.4749, allocations: 413.1 kB / 0.5123 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.475, allocations: 45.44 kB / 0.5123 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005922/0.4756, allocations: 221.7 kB / 0.5125 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000482/0.4761, allocations: 251.9 kB / 0.5128 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004349/0.4766, allocations: 286 kB / 0.513 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001332/0.4779, allocations: 0.7528 MB / 0.5138 GB, free: 1.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.4779, allocations: 1.031 kB / 0.5138 GB, free: 1.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4779, allocations: 0 / 0.5138 GB, free: 1.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.4779, allocations: 0 / 0.5138 GB, free: 1.902 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.001743/0.4797, allocations: 0.8882 MB / 0.5146 GB, free: 1.246 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.4797, allocations: 12.61 kB / 0.5146 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006695/0.4804, allocations: 93.52 kB / 0.5147 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006957/0.4811, allocations: 437.6 kB / 0.5151 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.4812, allocations: 30.3 kB / 0.5152 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.637e-05/0.4813, allocations: 42.86 kB / 0.5152 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.4829, allocations: 0.8655 MB / 0.5161 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.808e-05/0.483, allocations: 5.766 kB / 0.5161 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/0.4831, allocations: 21.83 kB / 0.5161 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001611/0.4832, allocations: 59.22 kB / 0.5161 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.4848, allocations: 0.7985 MB / 0.5169 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004408/0.4892, allocations: 2.719 MB / 0.5196 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.4904, allocations: 0.5775 MB / 0.5201 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007468/0.4911, allocations: 457.3 kB / 0.5206 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-05/0.4912, allocations: 5.344 kB / 0.5206 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.4912, allocations: 41.42 kB / 0.5206 GB, free: 13.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.776e-06/0.4912, allocations: 0 / 0.5206 GB, free: 13.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003385/0.4946, allocations: 1.881 MB / 0.5225 GB, free: 13.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.4948, allocations: 138.3 kB / 0.5226 GB, free: 12.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004021/0.4952, allocations: 294.9 kB / 0.5229 GB, free: 12.81 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.156e-05/0.4952, allocations: 32.83 kB / 0.5229 GB, free: 12.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.4954, allocations: 259.6 kB / 0.5232 GB, free: 12.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.4956, allocations: 186.7 kB / 0.5233 GB, free: 12.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002037/0.4958, allocations: 109.7 kB / 0.5234 GB, free: 12.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.496, allocations: 355.7 kB / 0.5238 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005622/0.4966, allocations: 339.8 kB / 0.5241 GB, free: 11.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006839/0.4973, allocations: 484.4 kB / 0.5246 GB, free: 11.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.4986, allocations: 0.9815 MB / 0.5255 GB, free: 11.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4987, allocations: 1.188 kB / 0.5255 GB, free: 11.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001602/0.5003, allocations: 0.9831 MB / 0.5265 GB, free: 10.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.5004, allocations: 77.86 kB / 0.5266 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.5004, allocations: 4.844 kB / 0.5266 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002391/0.5006, allocations: 41.02 kB / 0.5266 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003651/0.501, allocations: 90.03 kB / 0.5267 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.5024, allocations: 1.55 MB / 0.5282 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003531/0.5028, allocations: 33.28 kB / 0.5282 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.382e-05/0.5029, allocations: 27.33 kB / 0.5283 GB, free: 9.246 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.0004201/0.5033, allocations: 306.3 kB / 0.5286 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.5034, allocations: 45.94 kB / 0.5286 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/0.5053, allocations: 1.083 MB / 0.5297 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.461e-05/0.5053, allocations: 12.52 kB / 0.5297 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.5053, allocations: 1.094 kB / 0.5297 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.5053, allocations: 2.719 kB / 0.5297 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002891/0.5082, allocations: 1.79 MB / 0.5314 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.5082, allocations: 4.062 kB / 0.5314 GB, free: 7.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000255/0.5085, allocations: 59.69 kB / 0.5315 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001135/0.5086, allocations: 33.5 kB / 0.5315 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.885e-05/0.5087, allocations: 13.19 kB / 0.5315 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.51, allocations: 1.546 MB / 0.533 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.51, allocations: 0.9375 kB / 0.533 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.5118, allocations: 1.19 MB / 0.5342 GB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002435/0.5121, allocations: 171.9 kB / 0.5344 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.724e-05/0.5121, allocations: 15.7 kB / 0.5344 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.5124, allocations: 25.66 kB / 0.5344 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.5126, allocations: 44.52 kB / 0.5344 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.219e-05/0.5126, allocations: 21.73 kB / 0.5345 GB, free: 5.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.5129, allocations: 211.2 kB / 0.5347 GB, free: 5.395 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5129, allocations: 0 / 0.5347 GB, free: 5.395 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007202/0.5136, allocations: 140.6 kB / 0.5348 GB, free: 5.383 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.0002956/0.5139, allocations: 152.5 kB / 0.5349 GB, free: 5.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.5159, allocations: 1.372 MB / 0.5363 GB, free: 4.492 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.516, allocations: 1.188 kB / 0.5363 GB, free: 4.492 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.5173, allocations: 0.9264 MB / 0.5372 GB, free: 3.918 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006647/0.518, allocations: 77.66 kB / 0.5373 GB, free: 3.883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.5212, allocations: 1.371 MB / 0.5386 GB, free: 3.145 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007785/0.522, allocations: 0.8986 MB / 0.5395 GB, free: 2.352 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000359/0.5224, allocations: 104.2 kB / 0.5396 GB, free: 2.312 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.5225, allocations: 30.5 kB / 0.5396 GB, free: 2.301 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5225, allocations: 0 / 0.5396 GB, free: 2.301 MB / 398.1 MB Notification: Performance of Templates: time 0.01226/0.5348, allocations: 6.134 MB / 0.5456 GB, free: 13.05 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