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.001105/0.001105, allocations: 108.2 kB / 17.06 MB, free: 5.992 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.001133/0.001133, allocations: 196 kB / 18 MB, free: 5.082 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.377/1.377, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1803/0.1803, allocations: 38.03 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 63.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3431, allocations: 58.05 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.007069/0.3503, allocations: 7.574 MB / 0.511 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003758/0.3541, allocations: 2.331 MB / 0.5133 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004125/0.3545, allocations: 30.19 kB / 0.5133 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001996/0.3565, allocations: 0.854 MB / 0.5142 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001327/0.3579, allocations: 0.5035 MB / 0.5146 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.3593, allocations: 447.3 kB / 0.5151 GB, free: 15.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001572/0.3608, allocations: 1.275 MB / 0.5163 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008937/0.3617, allocations: 0.677 MB / 0.517 GB, free: 14.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009378/0.3627, allocations: 0.5649 MB / 0.5175 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.3638, allocations: 0.6537 MB / 0.5182 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001765/0.364, allocations: 77.91 kB / 0.5182 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005101/0.3645, allocations: 211.2 kB / 0.5184 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005321/0.3651, allocations: 493.2 kB / 0.5189 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005759/0.3657, allocations: 0.5339 MB / 0.5194 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001347/0.367, allocations: 1.23 MB / 0.5206 GB, free: 13.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.367, allocations: 1.125 kB / 0.5206 GB, free: 13.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.367, allocations: 0 / 0.5206 GB, free: 13.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.3671, allocations: 0 / 0.5206 GB, free: 13.17 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.002459/0.3695, allocations: 1.306 MB / 0.5219 GB, free: 12.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3696, allocations: 13.27 kB / 0.5219 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001895/0.3698, allocations: 139 kB / 0.5221 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000949/0.3707, allocations: 170.8 kB / 0.5222 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001528/0.3723, allocations: 0.73 MB / 0.5229 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.157e-05/0.3723, allocations: 64.88 kB / 0.523 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.3725, allocations: 86.61 kB / 0.5231 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.3743, allocations: 1.182 MB / 0.5242 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/0.3743, allocations: 3.406 kB / 0.5242 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.314e-05/0.3744, allocations: 37.78 kB / 0.5243 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-05/0.3745, allocations: 56.66 kB / 0.5243 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.376, allocations: 0.924 MB / 0.5252 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00613/0.3822, allocations: 4.77 MB / 0.5299 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.3834, allocations: 0.6768 MB / 0.5305 GB, free: 6.984 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005226/0.384, allocations: 379.3 kB / 0.5309 GB, free: 6.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.384, allocations: 9.953 kB / 0.5309 GB, free: 6.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005935/0.3846, allocations: 435.1 kB / 0.5313 GB, free: 6.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.365e-06/0.3846, allocations: 0 / 0.5313 GB, free: 6.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005702/0.3904, allocations: 2.449 MB / 0.5337 GB, free: 5.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.856e-05/0.3905, allocations: 174.6 kB / 0.5339 GB, free: 4.875 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007159/0.3912, allocations: 0.5972 MB / 0.5345 GB, free: 4.527 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.948e-05/0.3913, allocations: 41.02 kB / 0.5345 GB, free: 4.484 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003639/0.3917, allocations: 491.4 kB / 0.535 GB, free: 4.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.3919, allocations: 223.7 kB / 0.5352 GB, free: 3.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002276/0.3921, allocations: 153.2 kB / 0.5353 GB, free: 3.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.3923, allocations: 387.6 kB / 0.5357 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004672/0.3928, allocations: 279.9 kB / 0.536 GB, free: 3.277 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007102/0.3935, allocations: 0.5579 MB / 0.5365 GB, free: 2.777 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.3948, allocations: 0.9546 MB / 0.5375 GB, free: 2.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.3948, allocations: 2.312 kB / 0.5375 GB, free: 2.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002333/0.3972, allocations: 1.225 MB / 0.5387 GB, free: 1.379 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.841e-05/0.3972, allocations: 36.45 kB / 0.5387 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.3972, allocations: 8.938 kB / 0.5387 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.3983, allocations: 332.3 kB / 0.539 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005155/0.3988, allocations: 144.5 kB / 0.5392 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006443/0.4053, allocations: 5.394 MB / 0.5444 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007041/0.406, allocations: 39.16 kB / 0.5445 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.657e-05/0.4061, allocations: 35.62 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.0005593/0.4066, allocations: 360.4 kB / 0.5448 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.4068, allocations: 78.75 kB / 0.5449 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001905/0.4087, allocations: 1.031 MB / 0.5459 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.577e-06/0.4087, allocations: 7.5 kB / 0.5459 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.4087, allocations: 4.906 kB / 0.5459 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.4087, allocations: 7.984 kB / 0.5459 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003535/0.4123, allocations: 2.057 MB / 0.5479 GB, free: 9.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.4123, allocations: 4 kB / 0.5479 GB, free: 9.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.4126, allocations: 80.05 kB / 0.548 GB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008561/0.4135, allocations: 313.6 kB / 0.5483 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.852e-05/0.4135, allocations: 23.88 kB / 0.5483 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005901/0.4195, allocations: 5.308 MB / 0.5535 GB, free: 3.965 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.4195, allocations: 7.938 kB / 0.5535 GB, free: 3.957 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.4212, allocations: 1.116 MB / 0.5546 GB, free: 2.793 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002759/0.4215, allocations: 144.2 kB / 0.5548 GB, free: 2.633 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.4217, allocations: 16 kB / 0.5548 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003618/0.422, allocations: 19.98 kB / 0.5548 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.4222, allocations: 60.31 kB / 0.5549 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-05/0.4222, allocations: 16 kB / 0.5549 GB, free: 2.523 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005262/0.4227, allocations: 423 kB / 0.5553 GB, free: 2.113 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4227, allocations: 0 / 0.5553 GB, free: 2.113 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001066/0.4238, allocations: 272 kB / 0.5555 GB, free: 1.848 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.001996/0.4258, allocations: 1.686 MB / 0.5572 GB, free: 108 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00192/0.4278, allocations: 1.16 MB / 0.5583 GB, free: 14.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.4278, allocations: 4 kB / 0.5583 GB, free: 14.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.4288, allocations: 0.7566 MB / 0.5591 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009731/0.4298, allocations: 188.4 kB / 0.5592 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/0.4403, allocations: 7.294 MB / 0.5664 GB, free: 6.25 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007408/0.4411, allocations: 1.095 MB / 0.5674 GB, free: 5.129 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004685/0.4416, allocations: 178.3 kB / 0.5676 GB, free: 4.949 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003949/0.442, allocations: 331.3 kB / 0.5679 GB, free: 4.629 MB / 430.1 MB Notification: Performance of SimCode: time 6.72e-07/0.442, allocations: 0 / 0.5679 GB, free: 4.629 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0568/0.4988, allocations: 18.62 MB / 0.5861 GB, free: 2.246 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/14.16, allocations: 0 / 0.5861 GB, free: 2.246 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