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.001188/0.001188, allocations: 176.5 kB / 17.4 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.4 MB / 223.5 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008122/0.0008123, allocations: 94.42 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1709/0.1709, allocations: 38.08 MB / 358.3 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003588, allocations: 8 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2865, allocations: 56.31 MB / 481.6 MB, free: 9.605 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.415, allocations: 94.89 MB / 0.5629 GB, free: 7.379 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.4153, allocations: 95.75 kB / 0.563 GB, free: 7.289 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01864/0.434, allocations: 6.617 MB / 0.5695 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.434, allocations: 0 / 0.5695 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.394e-05/0.4341, allocations: 4 kB / 0.5695 GB, free: 0.5938 MB / 394.7 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.0009288/0.435, allocations: 0.5708 MB / 0.5701 GB, free: 15.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.4351, allocations: 8.031 kB / 0.5701 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.243e-05/0.4352, allocations: 32.56 kB / 0.5701 GB, free: 15.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008121/0.436, allocations: 486.6 kB / 0.5706 GB, free: 15.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.436, allocations: 16.81 kB / 0.5706 GB, free: 15.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.12e-05/0.4361, allocations: 20.56 kB / 0.5706 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003926/0.4365, allocations: 294.7 kB / 0.5709 GB, free: 15.06 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.4365, allocations: 0 / 0.5709 GB, free: 15.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/0.4365, allocations: 11.98 kB / 0.5709 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.4365, allocations: 8 kB / 0.5709 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002729/0.4368, allocations: 180.9 kB / 0.5711 GB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.4381, allocations: 1.228 MB / 0.5723 GB, free: 13.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002694/0.4384, allocations: 113.6 kB / 0.5724 GB, free: 13.42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.474e-05/0.4385, allocations: 41.77 kB / 0.5724 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.4385, allocations: 8 kB / 0.5724 GB, free: 13.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.4385, allocations: 34.5 kB / 0.5725 GB, free: 13.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.4385, allocations: 0 / 0.5725 GB, free: 13.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007985/0.4393, allocations: 492.4 kB / 0.5729 GB, free: 12.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.4394, allocations: 77.11 kB / 0.573 GB, free: 12.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.4396, allocations: 254.5 kB / 0.5732 GB, free: 12.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.4396, allocations: 25.7 kB / 0.5733 GB, free: 12.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.4398, allocations: 191.6 kB / 0.5734 GB, free: 12.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.4398, allocations: 51.52 kB / 0.5735 GB, free: 12.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-06/0.4398, allocations: 4 kB / 0.5735 GB, free: 12.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.4399, allocations: 338.8 kB / 0.5738 GB, free: 11.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.707e-05/0.44, allocations: 35.98 kB / 0.5739 GB, free: 11.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.4401, allocations: 136.7 kB / 0.574 GB, free: 11.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.4404, allocations: 185.4 kB / 0.5742 GB, free: 11.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4404, allocations: 4 kB / 0.5742 GB, free: 11.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002871/0.4407, allocations: 200.9 kB / 0.5744 GB, free: 11.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.4407, allocations: 12.42 kB / 0.5744 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.4407, allocations: 8 kB / 0.5744 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.4407, allocations: 4 kB / 0.5744 GB, free: 11.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.4409, allocations: 43.92 kB / 0.5744 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.4409, allocations: 4 kB / 0.5744 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.441, allocations: 12 kB / 0.5744 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.441, allocations: 8 kB / 0.5744 GB, free: 11.08 MB / 410.7 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 (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 0.0001458/0.4412, allocations: 165.6 kB / 0.5746 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.061e-05/0.4412, allocations: 19.72 kB / 0.5746 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002385/0.4415, allocations: 135.3 kB / 0.5748 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.4415, allocations: 4 kB / 0.5748 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.4415, allocations: 3.938 kB / 0.5748 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.4415, allocations: 0 / 0.5748 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005294/0.4421, allocations: 479.2 kB / 0.5752 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.4421, allocations: 4 kB / 0.5752 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.4422, allocations: 23.92 kB / 0.5752 GB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.4422, allocations: 4 kB / 0.5752 GB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.4422, allocations: 4 kB / 0.5753 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.4422, allocations: 4.031 kB / 0.5753 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.4423, allocations: 11.88 kB / 0.5753 GB, free: 10.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.4426, allocations: 276.5 kB / 0.5755 GB, free: 9.879 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.124e-05/0.4427, allocations: 96.81 kB / 0.5756 GB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.4427, allocations: 8 kB / 0.5756 GB, free: 9.758 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.4428, allocations: 4.062 kB / 0.5756 GB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.641e-05/0.4428, allocations: 11.92 kB / 0.5756 GB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.4428, allocations: 8 kB / 0.5757 GB, free: 9.734 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001457/0.443, allocations: 166 kB / 0.5758 GB, free: 9.574 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.443, allocations: 4 kB / 0.5758 GB, free: 9.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003226/0.4433, allocations: 44 kB / 0.5759 GB, free: 9.527 MB / 410.7 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 () * Number of clocked 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.0001324/0.4435, allocations: 107.2 kB / 0.576 GB, free: 9.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001962/0.4437, allocations: 107.8 kB / 0.5761 GB, free: 9.305 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4437, allocations: 4 kB / 0.5761 GB, free: 9.301 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.003e-05/0.4438, allocations: 43.92 kB / 0.5761 GB, free: 9.258 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004455/0.4442, allocations: 54.25 kB / 0.5762 GB, free: 9.207 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00089/0.4451, allocations: 0.6809 MB / 0.5768 GB, free: 8.488 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.4455, allocations: 0.7716 MB / 0.5776 GB, free: 7.691 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.4456, allocations: 38.2 kB / 0.5776 GB, free: 7.652 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.058e-05/0.4456, allocations: 19.44 kB / 0.5776 GB, free: 7.633 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4457, allocations: 0 / 0.5776 GB, free: 7.633 MB / 410.7 MB Notification: Performance of Templates: time 0.004773/0.4504, allocations: 1.864 MB / 0.5795 GB, free: 5.785 MB / 410.7 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/jenkins1/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