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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008289/0.0008289, allocations: 83.69 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008578/0.0008578, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9065/0.9065, allocations: 177.1 MB / 204.2 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2337/0.2337, allocations: 29.41 MB / 290.1 MB, free: 2.422 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 2.134e-06/2.134e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.444e-05/2.657e-05, allocations: 2.281 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.006317/0.006344, allocations: 7.118 MB / 437.3 MB, free: 6.449 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003361/0.009705, allocations: 2.231 MB / 439.6 MB, free: 4.211 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003553/0.01006, allocations: 35.69 kB / 439.6 MB, free: 4.176 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.01132, allocations: 0.8391 MB / 440.4 MB, free: 3.336 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008667/0.01219, allocations: 0.5242 MB / 441 MB, free: 2.809 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009531/0.01314, allocations: 470.7 kB / 441.4 MB, free: 2.348 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001154/0.01429, allocations: 1.308 MB / 442.7 MB, free: 1.035 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006138/0.01491, allocations: 0.5097 MB / 443.2 MB, free: 0.5156 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1933/0.2083, allocations: 0.7428 MB / 444 MB, free: 43.92 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008919/0.2091, allocations: 0.6257 MB / 444.6 MB, free: 43.92 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.844e-05/0.2092, allocations: 73.31 kB / 444.7 MB, free: 43.92 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003913/0.2096, allocations: 232.1 kB / 444.9 MB, free: 43.92 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.2099, allocations: 0.5107 MB / 445.4 MB, free: 43.92 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002522/0.2102, allocations: 370.3 kB / 445.8 MB, free: 43.92 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009164/0.2111, allocations: 1.261 MB / 447 MB, free: 43.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2111, allocations: 1.125 kB / 447 MB, free: 43.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2111, allocations: 0.5938 kB / 447 MB, free: 43.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.2111, allocations: 0 / 447 MB, free: 43.89 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.001488/0.2126, allocations: 1.253 MB / 448.3 MB, free: 43.22 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.2126, allocations: 14.3 kB / 448.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.2127, allocations: 143.2 kB / 448.4 MB, free: 43.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005638/0.2133, allocations: 207.1 kB / 448.6 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000719/0.214, allocations: 0.654 MB / 449.3 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.748e-05/0.2141, allocations: 61.59 kB / 449.4 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.173e-05/0.2141, allocations: 78.47 kB / 449.4 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.2151, allocations: 1.214 MB / 450.6 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.2152, allocations: 8.594 kB / 450.7 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.23e-05/0.2152, allocations: 39.95 kB / 450.7 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.342e-05/0.2153, allocations: 59.22 kB / 450.8 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008535/0.2161, allocations: 0.9491 MB / 451.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/0.2189, allocations: 4.454 MB / 456.2 MB, free: 39.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006222/0.2195, allocations: 0.646 MB / 456.8 MB, free: 39.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002844/0.2198, allocations: 375 kB / 457.2 MB, free: 39.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.2198, allocations: 10.09 kB / 457.2 MB, free: 39.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.2202, allocations: 477.1 kB / 457.6 MB, free: 39.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=65): time 3.055e-06/0.2202, allocations: 1.078 kB / 457.6 MB, free: 39.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.002662/0.2228, allocations: 2.383 MB / 460 MB, free: 38.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.2229, allocations: 164.5 kB / 460.2 MB, free: 37.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003578/0.2232, allocations: 0.6218 MB / 460.8 MB, free: 37.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.2232, allocations: 36.86 kB / 460.8 MB, free: 37.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.2234, allocations: 492.5 kB / 461.3 MB, free: 37.29 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.881e-05/0.2235, allocations: 231.7 kB / 461.6 MB, free: 37.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.2236, allocations: 158.1 kB / 461.7 MB, free: 37.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.878e-05/0.2236, allocations: 382.5 kB / 462.1 MB, free: 36.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.2239, allocations: 315.5 kB / 462.4 MB, free: 36.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003328/0.2242, allocations: 0.5792 MB / 463 MB, free: 36.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006523/0.2249, allocations: 0.9593 MB / 463.9 MB, free: 35.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.2249, allocations: 3.375 kB / 463.9 MB, free: 35.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001078/0.226, allocations: 1.255 MB / 465.2 MB, free: 35.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.226, allocations: 31.98 kB / 465.2 MB, free: 34.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.226, allocations: 10.06 kB / 465.2 MB, free: 34.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000535/0.2265, allocations: 332.6 kB / 465.6 MB, free: 34.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002408/0.2268, allocations: 148.9 kB / 465.7 MB, free: 34.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002955/0.2297, allocations: 5.021 MB / 470.7 MB, free: 31.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.23, allocations: 36.38 kB / 470.8 MB, free: 31.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.23, allocations: 43.11 kB / 470.8 MB, free: 31.32 MB / 410.7 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.0002282/0.2302, allocations: 353.9 kB / 471.1 MB, free: 31.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.2303, allocations: 83.11 kB / 471.2 MB, free: 31.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009668/0.2312, allocations: 1.065 MB / 472.3 MB, free: 30.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.2313, allocations: 10.25 kB / 472.3 MB, free: 30.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2313, allocations: 5.656 kB / 472.3 MB, free: 30.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.2313, allocations: 8.484 kB / 472.3 MB, free: 30.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001645/0.2329, allocations: 1.986 MB / 474.3 MB, free: 29.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.2329, allocations: 4.031 kB / 474.3 MB, free: 29.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.2331, allocations: 75.44 kB / 474.4 MB, free: 29.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004305/0.2335, allocations: 308.2 kB / 474.7 MB, free: 29.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.2335, allocations: 14.12 kB / 474.7 MB, free: 29.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00333/0.2368, allocations: 4.96 MB / 479.7 MB, free: 26.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.2369, allocations: 9.219 kB / 479.7 MB, free: 26.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.2387, allocations: 1.143 MB / 480.8 MB, free: 25.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.2388, allocations: 74.95 kB / 480.9 MB, free: 25.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.491e-05/0.2389, allocations: 18.48 kB / 480.9 MB, free: 25.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.2391, allocations: 20.47 kB / 480.9 MB, free: 25.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.954e-05/0.2392, allocations: 56.08 kB / 481 MB, free: 25.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.884e-05/0.2392, allocations: 23.31 kB / 481 MB, free: 25.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003067/0.2395, allocations: 423 kB / 481.4 MB, free: 25.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2395, allocations: 0 / 481.4 MB, free: 25.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006239/0.2401, allocations: 268.8 kB / 481.7 MB, free: 25.15 MB / 410.7 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.001127/0.2413, allocations: 1.703 MB / 483.4 MB, free: 24.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.2426, allocations: 1.178 MB / 484.5 MB, free: 23.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2426, allocations: 0 / 484.5 MB, free: 23.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007078/0.2433, allocations: 0.7594 MB / 485.3 MB, free: 22.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006536/0.2439, allocations: 180 kB / 485.5 MB, free: 22.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006791/0.2507, allocations: 7.44 MB / 492.9 MB, free: 18.87 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.2511, allocations: 0.505 MB / 493.4 MB, free: 18.72 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003554/0.2515, allocations: 173.6 kB / 493.6 MB, free: 18.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002269/0.2517, allocations: 325.8 kB / 493.9 MB, free: 18.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.412e-06/0.2517, allocations: 0 / 493.9 MB, free: 18.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03627/0.288, allocations: 19.91 MB / 0.5018 GB, free: 12.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.305/7.593, allocations: 8 kB / 0.5018 GB, free: 12.81 MB / 410.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 9.579093025997281]