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.002002/0.002002, allocations: 107.1 kB / 20.44 MB, free: 1.324 MB / 14.72 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.001582/0.001582, allocations: 196.5 kB / 23.72 MB, free: 4.492 MB / 14.72 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 1.498/1.498, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.2157/0.2157, allocations: 38.55 MB / 352.5 MB, free: 12.34 MB / 286.1 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: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002155/0.002155, allocations: 75.89 kB / 492.5 MB, free: 4.711 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3204, allocations: 62.46 MB / 0.5419 GB, free: 268 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009346/0.3297, allocations: 7.162 MB / 0.5489 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004399/0.3341, allocations: 2.228 MB / 0.5511 GB, free: 9.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003422/0.3345, allocations: 36.91 kB / 0.5512 GB, free: 9.051 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002309/0.3368, allocations: 0.8293 MB / 0.552 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001152/0.3379, allocations: 0.5097 MB / 0.5525 GB, free: 8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.3392, allocations: 465.6 kB / 0.5529 GB, free: 7.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00156/0.3407, allocations: 1.273 MB / 0.5541 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008252/0.3415, allocations: 0.5124 MB / 0.5546 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00103/0.3426, allocations: 0.5767 MB / 0.5552 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001024/0.3436, allocations: 0.6631 MB / 0.5559 GB, free: 5.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.3437, allocations: 73.88 kB / 0.5559 GB, free: 5.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005613/0.3443, allocations: 242.1 kB / 0.5562 GB, free: 5.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005091/0.3448, allocations: 498.6 kB / 0.5566 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005221/0.3453, allocations: 446 kB / 0.5571 GB, free: 4.742 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001477/0.3468, allocations: 1.265 MB / 0.5583 GB, free: 3.473 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3468, allocations: 4 kB / 0.5583 GB, free: 3.469 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3468, allocations: 0 / 0.5583 GB, free: 3.469 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.49e-05/0.3468, allocations: 0 / 0.5583 GB, free: 3.469 MB / 398.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.002498/0.3493, allocations: 1.265 MB / 0.5595 GB, free: 2.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.441e-05/0.3494, allocations: 15.98 kB / 0.5595 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001751/0.3496, allocations: 135.7 kB / 0.5597 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/0.3507, allocations: 204.1 kB / 0.5599 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.3521, allocations: 0.6633 MB / 0.5605 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.823e-05/0.3522, allocations: 58.38 kB / 0.5606 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.3523, allocations: 87.92 kB / 0.5607 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.3543, allocations: 1.208 MB / 0.5618 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.812e-05/0.3543, allocations: 7.891 kB / 0.5618 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.278e-05/0.3544, allocations: 36 kB / 0.5619 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.499e-05/0.3545, allocations: 61.97 kB / 0.5619 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.3561, allocations: 0.95 MB / 0.5629 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006343/0.3624, allocations: 4.457 MB / 0.5672 GB, free: 9.961 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.3637, allocations: 0.6517 MB / 0.5679 GB, free: 9.285 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005734/0.3642, allocations: 373.6 kB / 0.5682 GB, free: 8.902 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.459e-05/0.3643, allocations: 8.5 kB / 0.5682 GB, free: 8.895 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008564/0.3651, allocations: 482.5 kB / 0.5687 GB, free: 8.391 MB / 414.1 MB Notification: Performance of pre-optimization done (n=65): time 2.985e-06/0.3651, allocations: 0 / 0.5687 GB, free: 8.391 MB / 414.1 MB Notification: Performance of matching and sorting (n=66): time 0.005738/0.3709, allocations: 2.381 MB / 0.571 GB, free: 5.973 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.371, allocations: 170.8 kB / 0.5712 GB, free: 5.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.372, allocations: 0.6094 MB / 0.5718 GB, free: 5.156 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.011e-05/0.3721, allocations: 37.7 kB / 0.5718 GB, free: 5.113 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006214/0.3727, allocations: 0.4921 MB / 0.5723 GB, free: 4.613 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003062/0.373, allocations: 234.1 kB / 0.5725 GB, free: 4.383 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002911/0.3733, allocations: 162.6 kB / 0.5727 GB, free: 4.219 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002639/0.3736, allocations: 386.7 kB / 0.573 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005367/0.3741, allocations: 319.5 kB / 0.5733 GB, free: 3.512 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007767/0.3749, allocations: 0.5776 MB / 0.5739 GB, free: 2.809 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.3763, allocations: 0.9545 MB / 0.5748 GB, free: 1.715 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.3763, allocations: 4 kB / 0.5748 GB, free: 1.711 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002324/0.3786, allocations: 1.247 MB / 0.5761 GB, free: 448 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.299e-05/0.3786, allocations: 33.7 kB / 0.5761 GB, free: 408 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.3787, allocations: 8 kB / 0.5761 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.3798, allocations: 346 kB / 0.5764 GB, free: 48 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005408/0.3803, allocations: 143.7 kB / 0.5766 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006646/0.387, allocations: 5.038 MB / 0.5815 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000684/0.3876, allocations: 28.03 kB / 0.5815 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.602e-05/0.3877, allocations: 43.98 kB / 0.5815 GB, free: 10.58 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.0006942/0.3884, allocations: 352.7 kB / 0.5819 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.3886, allocations: 83.42 kB / 0.582 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002135/0.3907, allocations: 1.071 MB / 0.583 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.3907, allocations: 8 kB / 0.583 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3907, allocations: 8 kB / 0.583 GB, free: 9.016 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.3907, allocations: 4 kB / 0.583 GB, free: 9.012 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003686/0.3944, allocations: 1.982 MB / 0.585 GB, free: 6.949 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.3944, allocations: 3.984 kB / 0.585 GB, free: 6.945 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003197/0.3947, allocations: 71.91 kB / 0.585 GB, free: 6.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009299/0.3957, allocations: 309.6 kB / 0.5853 GB, free: 6.566 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.259e-05/0.3957, allocations: 23.92 kB / 0.5854 GB, free: 6.543 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006374/0.4021, allocations: 4.946 MB / 0.5902 GB, free: 1.363 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4021, allocations: 4 kB / 0.5902 GB, free: 1.359 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.4041, allocations: 1.156 MB / 0.5913 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.4043, allocations: 79.34 kB / 0.5914 GB, free: 76 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.734e-05/0.4044, allocations: 16 kB / 0.5914 GB, free: 60 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003276/0.4047, allocations: 19.98 kB / 0.5914 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.4049, allocations: 64.27 kB / 0.5915 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.536e-05/0.405, allocations: 20 kB / 0.5915 GB, free: 15.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005753/0.4055, allocations: 419 kB / 0.5919 GB, free: 15.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4055, allocations: 0 / 0.5919 GB, free: 15.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009393/0.4065, allocations: 272 kB / 0.5922 GB, free: 15.29 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.002223/0.4087, allocations: 1.708 MB / 0.5938 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.4108, allocations: 1.168 MB / 0.595 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4108, allocations: 0 / 0.595 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.412, allocations: 0.7771 MB / 0.5957 GB, free: 11.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009869/0.413, allocations: 185.5 kB / 0.5959 GB, free: 11.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.4249, allocations: 7.456 MB / 0.6032 GB, free: 3.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007061/0.4256, allocations: 0.5081 MB / 0.6037 GB, free: 2.887 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005208/0.4261, allocations: 174.3 kB / 0.6039 GB, free: 2.711 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004477/0.4266, allocations: 323.3 kB / 0.6042 GB, free: 2.395 MB / 446.1 MB Notification: Performance of SimCode: time 1.863e-06/0.4266, allocations: 0 / 0.6042 GB, free: 2.395 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.063/0.4896, allocations: 19.77 MB / 0.6235 GB, free: 14.87 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.82, allocations: 10.41 kB / 0.6235 GB, free: 14.86 MB / 478.1 MB " [Timeout remaining time 647] (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/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationSteadyState.mat","/var/lib/jenkins1/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: 15.810199140105397]