Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.Generic.Test.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") translateModel(PowerSystems.Examples.Generic.Test.FixedCurrentTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001344/0.001344, allocations: 171.5 kB / 17.4 MB, free: 4.395 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.429/1.429, allocations: 205.4 MB / 223.5 MB, free: 9.023 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.0007592/0.0007592, allocations: 93.31 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.1782/0.1782, allocations: 38.07 MB / 358.2 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003779/0.0003781, allocations: 20 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2987, allocations: 56.32 MB / 481.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.4236, allocations: 94.72 MB / 0.5628 GB, free: 7.535 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.4239, allocations: 91.81 kB / 0.5629 GB, free: 7.449 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03356/0.4575, allocations: 14.31 MB / 0.5768 GB, free: 8.965 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4576, allocations: 0 / 0.5768 GB, free: 8.965 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.4576, allocations: 8 kB / 0.5769 GB, free: 8.957 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007415/0.4583, allocations: 0.499 MB / 0.5773 GB, free: 8.406 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.4584, allocations: 8.031 kB / 0.5774 GB, free: 8.398 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008735/0.4593, allocations: 100.5 kB / 0.5774 GB, free: 8.301 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003808/0.4597, allocations: 267.8 kB / 0.5777 GB, free: 8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.4597, allocations: 20.38 kB / 0.5777 GB, free: 7.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.216e-05/0.4598, allocations: 16.38 kB / 0.5777 GB, free: 7.965 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004529/0.4602, allocations: 314.2 kB / 0.578 GB, free: 7.637 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.4602, allocations: 192 / 0.578 GB, free: 7.637 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.4603, allocations: 7.938 kB / 0.578 GB, free: 7.629 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.029e-05/0.4604, allocations: 31.97 kB / 0.5781 GB, free: 7.598 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003921/0.4608, allocations: 279.7 kB / 0.5783 GB, free: 7.324 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.4623, allocations: 1.272 MB / 0.5796 GB, free: 5.965 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/0.4627, allocations: 235.6 kB / 0.5798 GB, free: 5.719 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.4629, allocations: 101.7 kB / 0.5799 GB, free: 5.613 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.4629, allocations: 4 kB / 0.5799 GB, free: 5.609 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.4629, allocations: 30.56 kB / 0.5799 GB, free: 5.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 2.865e-06/0.4629, allocations: 0 / 0.5799 GB, free: 5.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.000721/0.4637, allocations: 444.3 kB / 0.5804 GB, free: 5.129 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.4637, allocations: 85.05 kB / 0.5804 GB, free: 5.027 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.4639, allocations: 198.4 kB / 0.5806 GB, free: 4.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.4639, allocations: 25.7 kB / 0.5807 GB, free: 4.789 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.464, allocations: 159.9 kB / 0.5808 GB, free: 4.629 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.709e-05/0.4641, allocations: 55.2 kB / 0.5809 GB, free: 4.574 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.141e-05/0.4641, allocations: 4 kB / 0.5809 GB, free: 4.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.4642, allocations: 334.9 kB / 0.5812 GB, free: 4.234 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.4644, allocations: 88.42 kB / 0.5813 GB, free: 4.145 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.4645, allocations: 153.4 kB / 0.5814 GB, free: 3.965 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002924/0.4648, allocations: 260.3 kB / 0.5817 GB, free: 3.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4648, allocations: 4 kB / 0.5817 GB, free: 3.676 MB / 410.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003768/0.4652, allocations: 291.7 kB / 0.5819 GB, free: 3.387 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.4652, allocations: 8 kB / 0.582 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.4652, allocations: 4 kB / 0.582 GB, free: 3.375 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.4653, allocations: 4 kB / 0.582 GB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.4655, allocations: 55.84 kB / 0.582 GB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.4655, allocations: 8.266 kB / 0.582 GB, free: 3.309 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.4657, allocations: 19.98 kB / 0.582 GB, free: 3.289 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.4657, allocations: 8 kB / 0.582 GB, free: 3.281 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.4658, allocations: 165.6 kB / 0.5822 GB, free: 3.109 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.4659, allocations: 15.81 kB / 0.5822 GB, free: 3.094 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003341/0.4662, allocations: 223.4 kB / 0.5824 GB, free: 2.867 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.4662, allocations: 7.938 kB / 0.5824 GB, free: 2.859 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.4662, allocations: 0 / 0.5824 GB, free: 2.859 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4662, allocations: 4 kB / 0.5824 GB, free: 2.855 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.4674, allocations: 0.9515 MB / 0.5834 GB, free: 1.801 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.4675, allocations: 4 kB / 0.5834 GB, free: 1.797 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.4676, allocations: 36.42 kB / 0.5834 GB, free: 1.762 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.4676, allocations: 7.984 kB / 0.5834 GB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.4676, allocations: 16 kB / 0.5834 GB, free: 1.738 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.4677, allocations: 7.938 kB / 0.5834 GB, free: 1.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.4677, allocations: 7.938 kB / 0.5835 GB, free: 1.723 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00038/0.468, allocations: 411.8 kB / 0.5838 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.273e-05/0.4681, allocations: 104.8 kB / 0.5839 GB, free: 1.137 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.995e-05/0.4682, allocations: 4 kB / 0.5839 GB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.4683, allocations: 15.98 kB / 0.584 GB, free: 1.117 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.4684, allocations: 31.84 kB / 0.584 GB, free: 1.086 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.4684, allocations: 12 kB / 0.584 GB, free: 1.074 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000119/0.4685, allocations: 151 kB / 0.5842 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4685, allocations: 0 / 0.5842 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003647/0.4689, allocations: 63.94 kB / 0.5842 GB, free: 0.8633 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 simulation (18): * Single equations (assignments): 17 * 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.0001218/0.469, allocations: 115.1 kB / 0.5843 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003096/0.4693, allocations: 211.7 kB / 0.5845 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4693, allocations: 0 / 0.5845 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.4695, allocations: 101.1 kB / 0.5846 GB, free: 448 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/0.4699, allocations: 35.98 kB / 0.5847 GB, free: 412 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008979/0.4708, allocations: 0.6654 MB / 0.5853 GB, free: 15.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.4712, allocations: 0.7596 MB / 0.586 GB, free: 14.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001508/0.4713, allocations: 53.5 kB / 0.5861 GB, free: 14.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.213e-05/0.4714, allocations: 23.42 kB / 0.5861 GB, free: 14.8 MB / 426.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4714, allocations: 7.938 kB / 0.5861 GB, free: 14.79 MB / 426.7 MB Notification: Performance of Templates: time 0.004136/0.4755, allocations: 1.708 MB / 0.5878 GB, free: 13.09 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches