Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008991/0.0008991, allocations: 172.2 kB / 17.4 MB, free: 4.297 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.394/1.394, allocations: 205.4 MB / 223.6 MB, free: 9.008 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.0007798/0.0007797, allocations: 94.81 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1801/0.1801, allocations: 38.07 MB / 358.3 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005197/0.0005198, allocations: 12 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2844, allocations: 56.31 MB / 481.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1339/0.4184, allocations: 95.33 MB / 0.5634 GB, free: 6.938 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.4187, allocations: 103.8 kB / 0.5635 GB, free: 6.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02146/0.4402, allocations: 7.373 MB / 0.5707 GB, free: 15.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4402, allocations: 4 kB / 0.5707 GB, free: 15.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.598e-05/0.4403, allocations: 8 kB / 0.5707 GB, free: 15.37 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001099/0.4414, allocations: 0.6376 MB / 0.5713 GB, free: 14.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.4414, allocations: 12.03 kB / 0.5713 GB, free: 14.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.4415, allocations: 36.47 kB / 0.5713 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009239/0.4425, allocations: 0.5034 MB / 0.5718 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.4425, allocations: 20.94 kB / 0.5719 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.813e-05/0.4426, allocations: 28.36 kB / 0.5719 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004963/0.4431, allocations: 345.3 kB / 0.5722 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.4431, allocations: 3.938 kB / 0.5722 GB, free: 13.67 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.4431, allocations: 15.98 kB / 0.5722 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.4431, allocations: 8 kB / 0.5722 GB, free: 13.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003779/0.4435, allocations: 234 kB / 0.5725 GB, free: 13.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.4452, allocations: 1.367 MB / 0.5738 GB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003266/0.4456, allocations: 165 kB / 0.574 GB, free: 11.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/0.4458, allocations: 113.7 kB / 0.5741 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.4459, allocations: 0 / 0.5741 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.4459, allocations: 42.56 kB / 0.5741 GB, free: 11.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.4459, allocations: 0 / 0.5741 GB, free: 11.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.001281/0.4472, allocations: 0.7398 MB / 0.5748 GB, free: 10.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.4473, allocations: 81.05 kB / 0.5749 GB, free: 10.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/0.4476, allocations: 304.6 kB / 0.5752 GB, free: 10.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.4476, allocations: 25.7 kB / 0.5752 GB, free: 10.37 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.4478, allocations: 215.6 kB / 0.5754 GB, free: 10.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.948e-05/0.4478, allocations: 51.2 kB / 0.5755 GB, free: 10.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.018e-05/0.4478, allocations: 4 kB / 0.5755 GB, free: 10.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.4479, allocations: 342.8 kB / 0.5758 GB, free: 9.754 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.4481, allocations: 63.91 kB / 0.5759 GB, free: 9.691 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.4482, allocations: 161.3 kB / 0.576 GB, free: 9.488 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/0.4485, allocations: 250 kB / 0.5763 GB, free: 9.199 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.4485, allocations: 0 / 0.5763 GB, free: 9.199 MB / 410.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004873/0.449, allocations: 309.9 kB / 0.5766 GB, free: 8.887 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.4491, allocations: 11.94 kB / 0.5766 GB, free: 8.875 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.4491, allocations: 7.938 kB / 0.5766 GB, free: 8.867 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000193/0.4493, allocations: 44.81 kB / 0.5766 GB, free: 8.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.4495, allocations: 51.92 kB / 0.5767 GB, free: 8.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.4508, allocations: 1.456 MB / 0.5781 GB, free: 7.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.4509, allocations: 15.89 kB / 0.5781 GB, free: 7.164 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.451, allocations: 12 kB / 0.5781 GB, free: 7.152 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 (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001807/0.4512, allocations: 185.7 kB / 0.5783 GB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.656e-05/0.4512, allocations: 23.72 kB / 0.5783 GB, free: 6.938 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000386/0.4516, allocations: 231.8 kB / 0.5785 GB, free: 6.707 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4516, allocations: 0 / 0.5785 GB, free: 6.707 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4516, allocations: 4 kB / 0.5785 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.4516, allocations: 0 / 0.5785 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008073/0.4524, allocations: 0.6287 MB / 0.5792 GB, free: 6.012 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.4525, allocations: 4 kB / 0.5792 GB, free: 6.008 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.4526, allocations: 19.98 kB / 0.5792 GB, free: 5.988 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001673/0.4527, allocations: 56.73 kB / 0.5792 GB, free: 5.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.885e-05/0.4528, allocations: 4 kB / 0.5792 GB, free: 5.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.454, allocations: 1.471 MB / 0.5807 GB, free: 4.316 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.454, allocations: 4.031 kB / 0.5807 GB, free: 4.312 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005144/0.4545, allocations: 400.5 kB / 0.5811 GB, free: 3.898 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.537e-05/0.4546, allocations: 104.8 kB / 0.5812 GB, free: 3.777 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.4547, allocations: 7.984 kB / 0.5812 GB, free: 3.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.4548, allocations: 8 kB / 0.5812 GB, free: 3.762 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.4548, allocations: 7.984 kB / 0.5812 GB, free: 3.754 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.4549, allocations: 4 kB / 0.5812 GB, free: 3.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002066/0.4551, allocations: 219 kB / 0.5814 GB, free: 3.535 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4551, allocations: 0 / 0.5814 GB, free: 3.535 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003858/0.4555, allocations: 75.98 kB / 0.5815 GB, free: 3.461 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000146/0.4556, allocations: 103.2 kB / 0.5816 GB, free: 3.352 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.4561, allocations: 283.2 kB / 0.5818 GB, free: 3.062 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4561, allocations: 8 kB / 0.5818 GB, free: 3.055 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003172/0.4564, allocations: 198.6 kB / 0.582 GB, free: 2.848 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004799/0.4569, allocations: 57.12 kB / 0.5821 GB, free: 2.793 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.4583, allocations: 0.8875 MB / 0.583 GB, free: 1.871 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.4587, allocations: 0.8106 MB / 0.5837 GB, free: 1.035 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.4589, allocations: 46.94 kB / 0.5838 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.4589, allocations: 23.44 kB / 0.5838 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of SimCode: time 2e-07/0.4589, allocations: 0 / 0.5838 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of Templates: time 0.006607/0.4656, allocations: 2.732 MB / 0.5865 GB, free: 14.25 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches