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.001749/0.001749, allocations: 113 kB / 17.07 MB, free: 6.008 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.002059/0.002059, allocations: 189.4 kB / 18 MB, free: 5.09 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.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1739/0.1739, allocations: 38.04 MB / 329.9 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 59.91 kB / 457.7 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3003, 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.006779/0.3071, allocations: 7.589 MB / 0.511 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003425/0.3106, allocations: 2.321 MB / 0.5133 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003491/0.3109, allocations: 25 kB / 0.5133 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.3128, allocations: 0.8549 MB / 0.5142 GB, free: 12 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001142/0.314, allocations: 0.5074 MB / 0.5147 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.3153, allocations: 447.2 kB / 0.5151 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001675/0.317, allocations: 1.275 MB / 0.5163 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009567/0.318, allocations: 0.6748 MB / 0.517 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009783/0.3189, allocations: 0.5576 MB / 0.5175 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.3203, allocations: 0.6537 MB / 0.5182 GB, free: 14.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002047/0.3205, allocations: 74.03 kB / 0.5182 GB, free: 14.17 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006589/0.3211, allocations: 210.8 kB / 0.5184 GB, free: 14.13 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006518/0.3218, allocations: 498.1 kB / 0.5189 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007127/0.3225, allocations: 0.5268 MB / 0.5194 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001951/0.3245, allocations: 1.243 MB / 0.5206 GB, free: 13.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.3245, allocations: 1.094 kB / 0.5206 GB, free: 13.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3245, allocations: 7.938 kB / 0.5206 GB, free: 13.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.3245, 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.00273/0.3273, allocations: 1.333 MB / 0.5219 GB, free: 12.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.3273, allocations: 12.73 kB / 0.522 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002098/0.3275, allocations: 147.7 kB / 0.5221 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009402/0.3285, allocations: 175.3 kB / 0.5223 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.3299, allocations: 0.7302 MB / 0.523 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.888e-05/0.33, allocations: 63.98 kB / 0.523 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.3302, allocations: 83.91 kB / 0.5231 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/0.332, allocations: 1.177 MB / 0.5243 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/0.3321, allocations: 7.562 kB / 0.5243 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.066e-05/0.3322, allocations: 33.38 kB / 0.5243 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.902e-05/0.3323, allocations: 56.94 kB / 0.5244 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001597/0.3339, allocations: 0.9314 MB / 0.5253 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006298/0.3402, allocations: 4.775 MB / 0.5299 GB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.3415, allocations: 0.6738 MB / 0.5306 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005546/0.3421, allocations: 374.9 kB / 0.531 GB, free: 6.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.393e-05/0.3421, allocations: 15.52 kB / 0.531 GB, free: 6.777 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006656/0.3428, allocations: 440.7 kB / 0.5314 GB, free: 6.477 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 4.999e-06/0.3428, allocations: 0 / 0.5314 GB, free: 6.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.005655/0.3485, allocations: 2.479 MB / 0.5338 GB, free: 4.953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.3486, allocations: 171 kB / 0.534 GB, free: 4.758 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007338/0.3494, allocations: 0.6013 MB / 0.5346 GB, free: 4.406 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.109e-05/0.3494, allocations: 37.27 kB / 0.5346 GB, free: 4.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000411/0.3499, allocations: 496.6 kB / 0.5351 GB, free: 3.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.3501, allocations: 232.9 kB / 0.5353 GB, free: 3.734 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002309/0.3503, allocations: 152.9 kB / 0.5354 GB, free: 3.641 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002108/0.3506, allocations: 387.1 kB / 0.5358 GB, free: 3.273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004621/0.351, allocations: 288.9 kB / 0.5361 GB, free: 3.141 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007077/0.3517, allocations: 0.5541 MB / 0.5366 GB, free: 2.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.353, allocations: 0.961 MB / 0.5376 GB, free: 1.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.353, allocations: 6.781 kB / 0.5376 GB, free: 1.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002215/0.3553, allocations: 1.223 MB / 0.5388 GB, free: 1.238 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.343e-05/0.3553, allocations: 38.8 kB / 0.5388 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.3553, allocations: 8.875 kB / 0.5388 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.3564, allocations: 337 kB / 0.5391 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.3569, allocations: 145.8 kB / 0.5393 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006897/0.3638, allocations: 5.398 MB / 0.5445 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006561/0.3645, allocations: 31.16 kB / 0.5446 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.139e-05/0.3646, allocations: 42.23 kB / 0.5446 GB, free: 12.51 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.0006709/0.3653, allocations: 360.7 kB / 0.545 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.3654, allocations: 83.17 kB / 0.545 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.3674, allocations: 1.042 MB / 0.5461 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.3674, allocations: 7.469 kB / 0.5461 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3674, allocations: 5.156 kB / 0.5461 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.3674, allocations: 3.984 kB / 0.5461 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003482/0.3709, allocations: 2.06 MB / 0.5481 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-06/0.371, allocations: 0 / 0.5481 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/0.3713, allocations: 71.91 kB / 0.5481 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009122/0.3722, allocations: 309.6 kB / 0.5484 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.846e-05/0.3723, allocations: 27.91 kB / 0.5485 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006508/0.3788, allocations: 5.319 MB / 0.5537 GB, free: 3.859 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3788, allocations: 3.938 kB / 0.5537 GB, free: 3.855 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002006/0.3808, allocations: 1.12 MB / 0.5548 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002254/0.381, allocations: 156.5 kB / 0.5549 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-05/0.3812, allocations: 12 kB / 0.5549 GB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003574/0.3815, allocations: 19.98 kB / 0.5549 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.3817, allocations: 64.36 kB / 0.555 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.004e-05/0.3817, allocations: 20 kB / 0.555 GB, free: 2.402 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005553/0.3823, allocations: 419 kB / 0.5554 GB, free: 1.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3823, allocations: 0 / 0.5554 GB, free: 1.996 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001043/0.3834, allocations: 264 kB / 0.5557 GB, free: 1.738 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.002317/0.3857, allocations: 1.688 MB / 0.5573 GB, free: 15.99 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002/0.3877, allocations: 1.148 MB / 0.5584 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3877, allocations: 4 kB / 0.5584 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.3889, allocations: 0.772 MB / 0.5592 GB, free: 13.99 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009409/0.3898, allocations: 189.1 kB / 0.5594 GB, free: 13.81 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.4008, allocations: 7.316 MB / 0.5665 GB, free: 6.109 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00088/0.4017, allocations: 1.107 MB / 0.5676 GB, free: 4.977 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004874/0.4022, allocations: 174.3 kB / 0.5678 GB, free: 4.801 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004141/0.4027, allocations: 323.3 kB / 0.5681 GB, free: 4.488 MB / 430.1 MB Notification: Performance of SimCode: time 6.02e-07/0.4027, allocations: 0 / 0.5681 GB, free: 4.488 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1009/0.5036, allocations: 18.27 MB / 0.5859 GB, free: 2.449 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/14.91, allocations: 0 / 0.5859 GB, free: 2.449 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