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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001472/0.001472, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008224/0.0008223, allocations: 86.39 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1623/0.1623, allocations: 38 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.797e-05/1.799e-05, allocations: 4 kB / 410.6 MB, free: 46.97 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1117, allocations: 56.33 MB / 466.9 MB, free: 6.57 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3454/0.4572, allocations: 93.7 MB / 0.5475 GB, free: 1.254 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004308/0.4577, allocations: 93.53 kB / 0.5475 GB, free: 1.164 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02916/0.4869, allocations: 6.598 MB / 0.554 GB, free: 10.51 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.4869, allocations: 4 kB / 0.554 GB, free: 10.5 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.829e-05/0.487, allocations: 12.69 kB / 0.554 GB, free: 10.49 MB / 395.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.001018/0.488, allocations: 0.551 MB / 0.5545 GB, free: 9.898 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.4881, allocations: 8.031 kB / 0.5546 GB, free: 9.891 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.727e-05/0.4882, allocations: 35.92 kB / 0.5546 GB, free: 9.855 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/0.4898, allocations: 0.5873 MB / 0.5552 GB, free: 9.227 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.4898, allocations: 8 kB / 0.5552 GB, free: 9.219 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.144e-05/0.4899, allocations: 12 kB / 0.5552 GB, free: 9.207 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004954/0.4904, allocations: 193 kB / 0.5554 GB, free: 9.016 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006161/0.4911, allocations: 285.7 kB / 0.5556 GB, free: 8.707 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.4911, allocations: 3.938 kB / 0.5556 GB, free: 8.703 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.326e-05/0.4911, allocations: 0 / 0.5556 GB, free: 8.703 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.4912, allocations: 8 kB / 0.5556 GB, free: 8.695 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/0.4933, allocations: 1.309 MB / 0.5569 GB, free: 7.305 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000428/0.4937, allocations: 129.2 kB / 0.557 GB, free: 7.16 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.4939, allocations: 57.77 kB / 0.5571 GB, free: 7.098 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.4939, allocations: 4 kB / 0.5571 GB, free: 7.094 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.494, allocations: 34.5 kB / 0.5571 GB, free: 7.051 MB / 395.1 MB Notification: Performance of pre-optimization done (n=12): time 1.933e-06/0.494, allocations: 0 / 0.5571 GB, free: 7.051 MB / 395.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008548/0.4949, allocations: 295.9 kB / 0.5574 GB, free: 6.754 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.4949, allocations: 81.05 kB / 0.5575 GB, free: 6.656 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.4952, allocations: 214.3 kB / 0.5577 GB, free: 6.438 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.4953, allocations: 29.69 kB / 0.5577 GB, free: 6.402 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.4955, allocations: 203.7 kB / 0.5579 GB, free: 6.199 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.871e-05/0.4955, allocations: 43.3 kB / 0.558 GB, free: 6.156 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.214e-05/0.4956, allocations: 0 / 0.558 GB, free: 6.156 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.4957, allocations: 342.8 kB / 0.5583 GB, free: 5.812 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.4959, allocations: 43.98 kB / 0.5583 GB, free: 5.77 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.4961, allocations: 144.8 kB / 0.5585 GB, free: 5.582 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.4963, allocations: 67.91 kB / 0.5585 GB, free: 5.516 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4963, allocations: 0 / 0.5585 GB, free: 5.516 MB / 395.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000548/0.4969, allocations: 225.2 kB / 0.5588 GB, free: 5.289 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.4969, allocations: 4 kB / 0.5588 GB, free: 5.285 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.497, allocations: 4 kB / 0.5588 GB, free: 5.281 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.497, allocations: 4 kB / 0.5588 GB, free: 5.277 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003244/0.4973, allocations: 59.91 kB / 0.5588 GB, free: 5.219 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.4974, allocations: 4 kB / 0.5588 GB, free: 5.215 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.4976, allocations: 4 kB / 0.5588 GB, free: 5.211 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.4976, allocations: 8 kB / 0.5588 GB, free: 5.203 MB / 395.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.4978, allocations: 121.1 kB / 0.559 GB, free: 5.078 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.613e-05/0.4978, allocations: 27.7 kB / 0.559 GB, free: 5.051 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004509/0.4983, allocations: 183.3 kB / 0.5592 GB, free: 4.867 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.4983, allocations: 4 kB / 0.5592 GB, free: 4.863 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4983, allocations: 0 / 0.5592 GB, free: 4.863 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.4984, allocations: 0 / 0.5592 GB, free: 4.863 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009324/0.4993, allocations: 0.5075 MB / 0.5597 GB, free: 4.309 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.4993, allocations: 0 / 0.5597 GB, free: 4.309 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.4996, allocations: 23.98 kB / 0.5597 GB, free: 4.285 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/0.4996, allocations: 4 kB / 0.5597 GB, free: 4.281 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.4996, allocations: 4 kB / 0.5597 GB, free: 4.277 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.4996, allocations: 4 kB / 0.5597 GB, free: 4.273 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.4997, allocations: 7.922 kB / 0.5597 GB, free: 4.266 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004766/0.5002, allocations: 308.2 kB / 0.56 GB, free: 3.93 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.568e-05/0.5003, allocations: 100.8 kB / 0.5601 GB, free: 3.812 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.5003, allocations: 0 / 0.5601 GB, free: 3.812 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.5006, allocations: 3.984 kB / 0.5601 GB, free: 3.809 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.964e-05/0.5006, allocations: 15.94 kB / 0.5601 GB, free: 3.793 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.5006, allocations: 4 kB / 0.5601 GB, free: 3.789 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0002244/0.5009, allocations: 166 kB / 0.5603 GB, free: 3.625 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5009, allocations: 4 kB / 0.5603 GB, free: 3.621 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.000503/0.5014, allocations: 51.98 kB / 0.5603 GB, free: 3.57 MB / 395.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001938/0.5016, allocations: 117 kB / 0.5604 GB, free: 3.445 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0003438/0.502, allocations: 143.8 kB / 0.5606 GB, free: 3.305 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.502, allocations: 0 / 0.5606 GB, free: 3.305 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.5021, allocations: 66.77 kB / 0.5606 GB, free: 3.242 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005806/0.5027, allocations: 56.92 kB / 0.5607 GB, free: 3.184 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000875/0.5036, allocations: 326.2 kB / 0.561 GB, free: 2.84 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.5041, allocations: 0.795 MB / 0.5618 GB, free: 2.02 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0002368/0.5044, allocations: 46.05 kB / 0.5618 GB, free: 1.977 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.843e-05/0.5045, allocations: 19.44 kB / 0.5618 GB, free: 1.957 MB / 395.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5045, allocations: 4 kB / 0.5618 GB, free: 1.953 MB / 395.1 MB Notification: Performance of Templates: time 0.007505/0.512, allocations: 2.023 MB / 0.5638 GB, free: 15.93 MB / 411.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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches