Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001205/0.001205, allocations: 177.6 kB / 8.349 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.416/1.416, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.0008137/0.0008137, allocations: 80.25 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.1657/0.1657, allocations: 37.98 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.726e-05/1.729e-05, allocations: 4 kB / 410.6 MB, free: 46.97 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 56.33 MB / 466.9 MB, free: 6.57 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.5471, allocations: 94.09 MB / 0.5478 GB, free: 0.8672 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.5475, allocations: 87.95 kB / 0.5479 GB, free: 0.7812 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01908/0.5666, allocations: 6.572 MB / 0.5543 GB, free: 10.16 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.5666, allocations: 0 / 0.5543 GB, free: 10.16 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.183e-05/0.5667, allocations: 4 kB / 0.5543 GB, free: 10.15 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007397/0.5674, allocations: 0.5234 MB / 0.5549 GB, free: 9.586 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.5675, allocations: 12.03 kB / 0.5549 GB, free: 9.574 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.933e-05/0.5675, allocations: 31.92 kB / 0.5549 GB, free: 9.543 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.5694, allocations: 0.7688 MB / 0.5556 GB, free: 8.734 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.5694, allocations: 11.94 kB / 0.5557 GB, free: 8.723 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/0.5694, allocations: 19.88 kB / 0.5557 GB, free: 8.703 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002977/0.5698, allocations: 156.8 kB / 0.5558 GB, free: 8.551 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003685/0.5701, allocations: 253.9 kB / 0.5561 GB, free: 8.266 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.5702, allocations: 4 kB / 0.5561 GB, free: 8.262 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.5702, allocations: 4 kB / 0.5561 GB, free: 8.258 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.5702, allocations: 8 kB / 0.5561 GB, free: 8.25 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.5714, allocations: 1.181 MB / 0.5572 GB, free: 6.996 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002574/0.5717, allocations: 97.45 kB / 0.5573 GB, free: 6.883 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.43e-05/0.5718, allocations: 45.7 kB / 0.5574 GB, free: 6.832 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.5718, allocations: 4 kB / 0.5574 GB, free: 6.828 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.5718, allocations: 34.56 kB / 0.5574 GB, free: 6.785 MB / 395.1 MB Notification: Performance of pre-optimization done (n=10): time 1.703e-06/0.5718, allocations: 0 / 0.5574 GB, free: 6.785 MB / 395.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006474/0.5725, allocations: 432.5 kB / 0.5578 GB, free: 6.309 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.5725, allocations: 77.11 kB / 0.5579 GB, free: 6.215 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.5727, allocations: 210.3 kB / 0.5581 GB, free: 6 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.5728, allocations: 25.7 kB / 0.5581 GB, free: 5.969 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.5729, allocations: 203.5 kB / 0.5583 GB, free: 5.766 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.5729, allocations: 35.47 kB / 0.5584 GB, free: 5.73 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-06/0.5729, allocations: 0 / 0.5584 GB, free: 5.73 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.573, allocations: 334.8 kB / 0.5587 GB, free: 5.395 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.288e-05/0.5731, allocations: 31.98 kB / 0.5587 GB, free: 5.363 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/0.5732, allocations: 124.8 kB / 0.5588 GB, free: 5.195 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.9e-05/0.5733, allocations: 48.39 kB / 0.5589 GB, free: 5.148 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.5733, allocations: 4 kB / 0.5589 GB, free: 5.145 MB / 395.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002517/0.5736, allocations: 185 kB / 0.559 GB, free: 4.957 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.5736, allocations: 4 kB / 0.559 GB, free: 4.953 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.5736, allocations: 4 kB / 0.5591 GB, free: 4.949 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.5736, allocations: 4 kB / 0.5591 GB, free: 4.945 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.5738, allocations: 47.92 kB / 0.5591 GB, free: 4.898 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.649e-06/0.5738, allocations: 7.984 kB / 0.5591 GB, free: 4.891 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.5739, allocations: 8.438 kB / 0.5591 GB, free: 4.883 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.574, allocations: 11.94 kB / 0.5591 GB, free: 4.871 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 (24): * Single equations (assignments): 24 * 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 8.958e-05/0.5741, allocations: 112.9 kB / 0.5592 GB, free: 4.754 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.5741, allocations: 27.66 kB / 0.5593 GB, free: 4.727 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002151/0.5743, allocations: 119.4 kB / 0.5594 GB, free: 4.609 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.5743, allocations: 4 kB / 0.5594 GB, free: 4.605 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.257e-06/0.5743, allocations: 0 / 0.5594 GB, free: 4.605 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.5744, allocations: 0 / 0.5594 GB, free: 4.605 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004531/0.5748, allocations: 435.7 kB / 0.5598 GB, free: 4.133 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.5748, allocations: 4 kB / 0.5598 GB, free: 4.129 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.575, allocations: 19.98 kB / 0.5598 GB, free: 4.109 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.575, allocations: 4 kB / 0.5598 GB, free: 4.105 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.575, allocations: 0 / 0.5598 GB, free: 4.105 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.575, allocations: 0 / 0.5598 GB, free: 4.105 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.575, allocations: 7.984 kB / 0.5598 GB, free: 4.098 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002941/0.5753, allocations: 296.3 kB / 0.5601 GB, free: 3.773 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.202e-05/0.5754, allocations: 92.86 kB / 0.5602 GB, free: 3.664 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.5754, allocations: 4 kB / 0.5602 GB, free: 3.66 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.549e-05/0.5755, allocations: 0 / 0.5602 GB, free: 3.66 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.5755, allocations: 11.94 kB / 0.5602 GB, free: 3.648 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.5756, allocations: 12.06 kB / 0.5602 GB, free: 3.637 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001305/0.5757, allocations: 158 kB / 0.5604 GB, free: 3.484 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5757, allocations: 0 / 0.5604 GB, free: 3.484 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003213/0.576, allocations: 44 kB / 0.5604 GB, free: 3.441 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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.0001328/0.5762, allocations: 109 kB / 0.5605 GB, free: 3.324 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001819/0.5764, allocations: 96.61 kB / 0.5606 GB, free: 3.23 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.5764, allocations: 3.938 kB / 0.5606 GB, free: 3.227 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 6.894e-05/0.5764, allocations: 40.06 kB / 0.5607 GB, free: 3.188 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.5768, allocations: 60.69 kB / 0.5607 GB, free: 3.129 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006548/0.5775, allocations: 348.1 kB / 0.561 GB, free: 2.754 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.5779, allocations: 0.7755 MB / 0.5618 GB, free: 1.953 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0001216/0.578, allocations: 30.06 kB / 0.5618 GB, free: 1.926 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.349e-05/0.578, allocations: 23.44 kB / 0.5619 GB, free: 1.902 MB / 395.1 MB Notification: Performance of SimCode: time 2.41e-07/0.578, allocations: 0 / 0.5619 GB, free: 1.902 MB / 395.1 MB Notification: Performance of Templates: time 0.004284/0.5823, allocations: 1.743 MB / 0.5636 GB, free: 176 kB / 395.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches