Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 121.4 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 225.6 MB / 249.1 MB, free: 3.648 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2315/0.2315, allocations: 38.51 MB / 342.5 MB, free: 8.098 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 63.53 kB / 478.6 MB, free: 33.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1352, allocations: 61.25 MB / 0.5272 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01099/0.1462, allocations: 7.655 MB / 0.5347 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005679/0.1519, allocations: 2.34 MB / 0.537 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008613/0.1528, allocations: 23.88 kB / 0.537 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002825/0.1556, allocations: 0.8635 MB / 0.5378 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0018/0.1574, allocations: 0.513 MB / 0.5383 GB, free: 5.961 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00161/0.159, allocations: 451 kB / 0.5388 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002313/0.1613, allocations: 1.274 MB / 0.54 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001001/0.1623, allocations: 0.5333 MB / 0.5405 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001327/0.1636, allocations: 0.5601 MB / 0.5411 GB, free: 3.137 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.1651, allocations: 0.6969 MB / 0.5418 GB, free: 2.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000244/0.1653, allocations: 76 kB / 0.5418 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006986/0.166, allocations: 223.7 kB / 0.5421 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000619/0.1666, allocations: 498.6 kB / 0.5425 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008676/0.1675, allocations: 0.5364 MB / 0.5431 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002095/0.1696, allocations: 1.245 MB / 0.5443 GB, free: 15.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1696, allocations: 0 / 0.5443 GB, free: 15.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1696, allocations: 0 / 0.5443 GB, free: 15.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.288e-05/0.1696, allocations: 0 / 0.5443 GB, free: 15.86 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003162/0.1728, allocations: 1.332 MB / 0.5456 GB, free: 14.47 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.1728, allocations: 11.89 kB / 0.5456 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002216/0.1731, allocations: 139.7 kB / 0.5457 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/0.1741, allocations: 172.1 kB / 0.5459 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001774/0.1759, allocations: 0.7316 MB / 0.5466 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.204e-05/0.1759, allocations: 70.36 kB / 0.5467 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/0.1761, allocations: 87.92 kB / 0.5467 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001981/0.1781, allocations: 1.175 MB / 0.5479 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.809e-05/0.1781, allocations: 11.94 kB / 0.5479 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.508e-05/0.1782, allocations: 32 kB / 0.5479 GB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.252e-05/0.1783, allocations: 57.97 kB / 0.548 GB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/0.18, allocations: 0.9249 MB / 0.5489 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00867/0.1887, allocations: 4.777 MB / 0.5536 GB, free: 5.949 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.19, allocations: 0.6254 MB / 0.5542 GB, free: 5.305 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005971/0.1906, allocations: 343.7 kB / 0.5545 GB, free: 4.961 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.059e-05/0.1907, allocations: 8.5 kB / 0.5545 GB, free: 4.953 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007146/0.1914, allocations: 439.8 kB / 0.5549 GB, free: 4.496 MB / 414.1 MB Notification: Performance of pre-optimization done (n=65): time 2.946e-06/0.1914, allocations: 0 / 0.5549 GB, free: 4.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=66): time 0.005864/0.1972, allocations: 2.463 MB / 0.5573 GB, free: 1.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.1974, allocations: 174.8 kB / 0.5575 GB, free: 1.762 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008742/0.1983, allocations: 0.5978 MB / 0.5581 GB, free: 1.156 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.853e-05/0.1984, allocations: 41.64 kB / 0.5581 GB, free: 1.109 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005021/0.1989, allocations: 496 kB / 0.5586 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000302/0.1992, allocations: 238 kB / 0.5588 GB, free: 392 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002395/0.1994, allocations: 154.6 kB / 0.559 GB, free: 228 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002429/0.1996, allocations: 386.8 kB / 0.5593 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00051/0.2001, allocations: 281.8 kB / 0.5596 GB, free: 15.56 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007239/0.2009, allocations: 0.5563 MB / 0.5602 GB, free: 14.88 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.2022, allocations: 0.9572 MB / 0.5611 GB, free: 13.79 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.2022, allocations: 4 kB / 0.5611 GB, free: 13.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002336/0.2046, allocations: 1.216 MB / 0.5623 GB, free: 12.55 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.2046, allocations: 37.64 kB / 0.5623 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.2046, allocations: 12.06 kB / 0.5623 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.2057, allocations: 329.5 kB / 0.5626 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005828/0.2063, allocations: 151.7 kB / 0.5628 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007143/0.2135, allocations: 5.401 MB / 0.5681 GB, free: 6.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006736/0.2141, allocations: 32.03 kB / 0.5681 GB, free: 6.293 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.151e-05/0.2142, allocations: 40.23 kB / 0.5681 GB, free: 6.254 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000763/0.215, allocations: 351.2 kB / 0.5685 GB, free: 5.895 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.2152, allocations: 87.36 kB / 0.5685 GB, free: 5.809 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002215/0.2174, allocations: 1.025 MB / 0.5695 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/0.2174, allocations: 8 kB / 0.5696 GB, free: 4.738 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.2174, allocations: 8 kB / 0.5696 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.2174, allocations: 3.984 kB / 0.5696 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004265/0.2217, allocations: 2.043 MB / 0.5716 GB, free: 2.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/0.2217, allocations: 4 kB / 0.5716 GB, free: 2.594 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004059/0.2221, allocations: 84.05 kB / 0.5716 GB, free: 2.512 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009682/0.2231, allocations: 316.3 kB / 0.5719 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.04e-05/0.2231, allocations: 19.88 kB / 0.572 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007399/0.2305, allocations: 5.323 MB / 0.5772 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.2305, allocations: 4 kB / 0.5772 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002775/0.2333, allocations: 1.109 MB / 0.5782 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003643/0.2337, allocations: 148.6 kB / 0.5784 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.2338, allocations: 16 kB / 0.5784 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003717/0.2342, allocations: 23.98 kB / 0.5784 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.2344, allocations: 56.38 kB / 0.5785 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.127e-05/0.2344, allocations: 20 kB / 0.5785 GB, free: 11.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006093/0.235, allocations: 423 kB / 0.5789 GB, free: 10.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.235, allocations: 4 kB / 0.5789 GB, free: 10.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001147/0.2362, allocations: 268 kB / 0.5792 GB, free: 10.45 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00268/0.2389, allocations: 1.676 MB / 0.5808 GB, free: 8.715 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002485/0.2414, allocations: 1.112 MB / 0.5819 GB, free: 7.562 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.2414, allocations: 4.812 kB / 0.5819 GB, free: 7.559 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.2426, allocations: 0.7285 MB / 0.5826 GB, free: 6.789 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.2437, allocations: 189.5 kB / 0.5828 GB, free: 6.613 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01276/0.2564, allocations: 7.293 MB / 0.5899 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009909/0.2574, allocations: 1.107 MB / 0.591 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005484/0.258, allocations: 178.3 kB / 0.5912 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004848/0.2585, allocations: 323.3 kB / 0.5915 GB, free: 13.31 MB / 462.1 MB Notification: Performance of SimCode: time 1.923e-06/0.2585, allocations: 0 / 0.5915 GB, free: 13.31 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3704/0.6288, allocations: 18.44 MB / 0.6095 GB, free: 71.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/15.05, allocations: 8.469 kB / 0.6095 GB, free: 71.77 MB / 462.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.34580370783806]