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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001525, allocations: 111.8 kB / 17.06 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001822/0.001822, allocations: 199 kB / 18 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1787/0.1787, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 63.91 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3302, allocations: 58.05 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.007284/0.3376, allocations: 7.59 MB / 0.511 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003682/0.3413, allocations: 2.323 MB / 0.5133 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004869/0.3418, allocations: 25.44 kB / 0.5133 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001936/0.3438, allocations: 0.8545 MB / 0.5142 GB, free: 20 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00127/0.3451, allocations: 0.5033 MB / 0.5146 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.3463, allocations: 450.7 kB / 0.5151 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00152/0.3479, allocations: 1.276 MB / 0.5163 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009247/0.3488, allocations: 0.6787 MB / 0.517 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009892/0.3498, allocations: 0.5643 MB / 0.5175 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.3509, allocations: 0.6498 MB / 0.5182 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001822/0.3511, allocations: 74.09 kB / 0.5182 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005188/0.3517, allocations: 207.3 kB / 0.5184 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005425/0.3522, allocations: 497.7 kB / 0.5189 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006225/0.3528, allocations: 0.528 MB / 0.5194 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.3542, allocations: 1.235 MB / 0.5206 GB, free: 13.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3542, allocations: 4.75 kB / 0.5206 GB, free: 13.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3542, allocations: 0 / 0.5206 GB, free: 13.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.999e-05/0.3543, allocations: 1.531 kB / 0.5206 GB, free: 13.2 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.002186/0.3565, allocations: 1.305 MB / 0.5219 GB, free: 12.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.3565, allocations: 14.52 kB / 0.5219 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/0.3567, allocations: 138.8 kB / 0.5221 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009108/0.3576, allocations: 170.2 kB / 0.5222 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.3589, allocations: 0.7309 MB / 0.5229 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.397e-05/0.3589, allocations: 63.38 kB / 0.523 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.3591, allocations: 87.53 kB / 0.5231 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/0.3608, allocations: 1.178 MB / 0.5242 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/0.3608, allocations: 7.359 kB / 0.5242 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-05/0.3609, allocations: 37.86 kB / 0.5243 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.482e-05/0.361, allocations: 56 kB / 0.5243 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/0.3625, allocations: 0.9277 MB / 0.5252 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005458/0.3679, allocations: 4.771 MB / 0.5299 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.3691, allocations: 0.6682 MB / 0.5305 GB, free: 7.016 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005291/0.3696, allocations: 378.8 kB / 0.5309 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.397e-05/0.3697, allocations: 7.781 kB / 0.5309 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005906/0.3703, allocations: 444.4 kB / 0.5313 GB, free: 6.562 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.345e-06/0.3703, allocations: 0 / 0.5313 GB, free: 6.562 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005213/0.3755, allocations: 2.447 MB / 0.5337 GB, free: 5.066 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.724e-05/0.3756, allocations: 163.7 kB / 0.5339 GB, free: 4.879 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007302/0.3764, allocations: 0.6037 MB / 0.5345 GB, free: 4.523 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.623e-05/0.3764, allocations: 37.86 kB / 0.5345 GB, free: 4.484 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003873/0.3768, allocations: 494.6 kB / 0.535 GB, free: 4.051 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/0.377, allocations: 217.4 kB / 0.5352 GB, free: 3.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002207/0.3773, allocations: 157 kB / 0.5353 GB, free: 3.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.3775, allocations: 391 kB / 0.5357 GB, free: 3.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004551/0.3779, allocations: 279.8 kB / 0.536 GB, free: 3.273 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006416/0.3786, allocations: 0.5586 MB / 0.5365 GB, free: 2.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.3798, allocations: 0.961 MB / 0.5375 GB, free: 2.023 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.3798, allocations: 2.812 kB / 0.5375 GB, free: 2.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002243/0.382, allocations: 1.223 MB / 0.5387 GB, free: 1.371 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/0.3821, allocations: 35.89 kB / 0.5387 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.3821, allocations: 8.969 kB / 0.5387 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.3832, allocations: 335.8 kB / 0.539 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004955/0.3837, allocations: 145.2 kB / 0.5392 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006327/0.3901, allocations: 5.39 MB / 0.5444 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007429/0.3909, allocations: 32.25 kB / 0.5445 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.391, allocations: 37.77 kB / 0.5445 GB, free: 12.66 MB / 414.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.0007019/0.3917, allocations: 364.8 kB / 0.5448 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/0.3919, allocations: 79.44 kB / 0.5449 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002146/0.3941, allocations: 1.034 MB / 0.5459 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.3941, allocations: 10.73 kB / 0.5459 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.96e-05/0.3941, allocations: 5.312 kB / 0.5459 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.3941, allocations: 4.641 kB / 0.5459 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00423/0.3984, allocations: 2.064 MB / 0.548 GB, free: 9.926 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.3984, allocations: 0 / 0.548 GB, free: 9.926 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003277/0.3987, allocations: 71.91 kB / 0.548 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009073/0.3997, allocations: 321.5 kB / 0.5483 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.439e-05/0.3997, allocations: 19.94 kB / 0.5484 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006184/0.4059, allocations: 5.304 MB / 0.5535 GB, free: 3.914 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.406, allocations: 0 / 0.5535 GB, free: 3.914 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001987/0.408, allocations: 1.124 MB / 0.5546 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002699/0.4082, allocations: 140.2 kB / 0.5548 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.4084, allocations: 19.98 kB / 0.5548 GB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003936/0.4088, allocations: 20 kB / 0.5548 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.409, allocations: 64.3 kB / 0.5549 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.474e-05/0.409, allocations: 20 kB / 0.5549 GB, free: 2.465 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005526/0.4096, allocations: 419 kB / 0.5553 GB, free: 2.059 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4096, allocations: 0 / 0.5553 GB, free: 2.059 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001208/0.4108, allocations: 268 kB / 0.5555 GB, free: 1.797 MB / 414.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.002234/0.413, allocations: 1.686 MB / 0.5572 GB, free: 56 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001982/0.415, allocations: 1.16 MB / 0.5583 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.415, allocations: 4 kB / 0.5583 GB, free: 14.85 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.4162, allocations: 0.7644 MB / 0.5591 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.4173, allocations: 184.6 kB / 0.5592 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.4277, allocations: 7.287 MB / 0.5664 GB, free: 6.203 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007402/0.4285, allocations: 1.103 MB / 0.5674 GB, free: 5.074 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004923/0.429, allocations: 182.4 kB / 0.5676 GB, free: 4.891 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003924/0.4294, allocations: 323.3 kB / 0.5679 GB, free: 4.578 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4294, allocations: 0 / 0.5679 GB, free: 4.578 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04758/0.477, allocations: 18.61 MB / 0.5861 GB, free: 2.195 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/13.92, allocations: 7.625 kB / 0.5861 GB, free: 2.191 MB / 446.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) 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) Reference file matches