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.001212/0.001212, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.00134/0.00134, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.374/1.374, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1772/0.1772, allocations: 38.03 MB / 329.7 MB, free: 8.887 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 66.58 kB / 398.9 MB, free: 34.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1164, allocations: 58.07 MB / 457 MB, free: 8.008 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009484/0.1259, allocations: 7.57 MB / 464.5 MB, free: 408 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004666/0.1307, allocations: 2.325 MB / 466.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009224/0.1316, allocations: 27.81 kB / 466.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002311/0.134, allocations: 0.8621 MB / 467.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.1354, allocations: 0.4975 MB / 468.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001356/0.1367, allocations: 451 kB / 468.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001482/0.1382, allocations: 1.27 MB / 470 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009169/0.1392, allocations: 0.6738 MB / 470.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009334/0.1401, allocations: 0.5446 MB / 471.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001038/0.1412, allocations: 0.6656 MB / 471.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.1413, allocations: 76 kB / 471.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004721/0.1418, allocations: 211.7 kB / 472.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00045/0.1422, allocations: 490.8 kB / 472.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005115/0.1428, allocations: 0.5363 MB / 473.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001232/0.144, allocations: 1.219 MB / 474.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.144, allocations: 0 / 474.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.144, allocations: 0 / 474.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.144, allocations: 0 / 474.4 MB, free: 6.543 MB / 350.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.002357/0.1464, allocations: 1.306 MB / 475.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.1465, allocations: 23.83 kB / 475.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000161/0.1466, allocations: 135.7 kB / 475.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000945/0.1476, allocations: 171.5 kB / 476 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.1487, allocations: 0.6804 MB / 476.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.283e-05/0.1488, allocations: 66.38 kB / 476.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.1489, allocations: 79.94 kB / 476.8 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.1505, allocations: 1.183 MB / 478 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.1505, allocations: 0 / 478 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-05/0.1506, allocations: 43.92 kB / 478 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.315e-05/0.1507, allocations: 53.98 kB / 478.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.152, allocations: 0.9327 MB / 479 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005483/0.1575, allocations: 4.799 MB / 483.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.1587, allocations: 0.6644 MB / 484.5 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.1592, allocations: 379.8 kB / 484.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.892e-05/0.1593, allocations: 16.55 kB / 484.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005857/0.1598, allocations: 443.7 kB / 485.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 4.198e-06/0.1599, allocations: 4 kB / 485.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005059/0.1649, allocations: 2.432 MB / 487.7 MB, free: 8.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.165, allocations: 166.8 kB / 487.9 MB, free: 8.438 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006795/0.1657, allocations: 0.5977 MB / 488.5 MB, free: 7.828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.541e-05/0.1658, allocations: 45.7 kB / 488.6 MB, free: 7.777 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00037/0.1662, allocations: 486.6 kB / 489 MB, free: 7.293 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.1664, allocations: 228.8 kB / 489.3 MB, free: 7.066 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002096/0.1666, allocations: 146.6 kB / 489.4 MB, free: 6.918 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1668, allocations: 386.8 kB / 489.8 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004315/0.1672, allocations: 285.8 kB / 490 MB, free: 6.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006101/0.1678, allocations: 0.5563 MB / 490.6 MB, free: 5.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.169, allocations: 0.9572 MB / 491.6 MB, free: 4.473 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.169, allocations: 0 / 491.6 MB, free: 4.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001986/0.171, allocations: 1.228 MB / 492.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.171, allocations: 37.73 kB / 492.8 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.1711, allocations: 12 kB / 492.8 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.1721, allocations: 340 kB / 493.2 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004874/0.1726, allocations: 151.7 kB / 493.3 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005837/0.1784, allocations: 5.388 MB / 498.7 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/0.179, allocations: 39.88 kB / 498.7 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.135e-05/0.179, allocations: 43.98 kB / 498.8 MB, free: 12.92 MB / 382.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.0004719/0.1795, allocations: 358 kB / 499.1 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.1797, allocations: 75.09 kB / 499.2 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.1815, allocations: 1.044 MB / 0.4885 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.1815, allocations: 8 kB / 0.4885 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.1815, allocations: 4 kB / 0.4885 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.1815, allocations: 3.984 kB / 0.4885 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003248/0.1848, allocations: 2.055 MB / 0.4906 GB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.1848, allocations: 0 / 0.4906 GB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.1851, allocations: 80.06 kB / 0.4906 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008484/0.186, allocations: 317.8 kB / 0.4909 GB, free: 8.855 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.263e-05/0.186, allocations: 19.92 kB / 0.491 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005853/0.1919, allocations: 5.316 MB / 0.4961 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.1919, allocations: 4 kB / 0.4961 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.1938, allocations: 1.119 MB / 0.4972 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001955/0.194, allocations: 144.2 kB / 0.4974 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.724e-05/0.1941, allocations: 19.94 kB / 0.4974 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003467/0.1945, allocations: 19.98 kB / 0.4974 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.1946, allocations: 60.42 kB / 0.4975 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.935e-05/0.1947, allocations: 16 kB / 0.4975 GB, free: 1.766 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004911/0.1952, allocations: 419 kB / 0.4979 GB, free: 1.363 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1952, allocations: 0 / 0.4979 GB, free: 1.363 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009495/0.1961, allocations: 268 kB / 0.4981 GB, free: 1.102 MB / 382.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.002128/0.1983, allocations: 1.682 MB / 0.4998 GB, free: 15.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.2004, allocations: 1.273 MB / 0.501 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.2004, allocations: 0 / 0.501 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.2014, allocations: 0.7643 MB / 0.5018 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008633/0.2023, allocations: 180 kB / 0.5019 GB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.2131, allocations: 7.51 MB / 0.5093 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008515/0.214, allocations: 1.107 MB / 0.5104 GB, free: 4.059 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005892/0.2146, allocations: 174.3 kB / 0.5105 GB, free: 3.883 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003885/0.215, allocations: 331.3 kB / 0.5108 GB, free: 3.559 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.215, allocations: 0 / 0.5108 GB, free: 3.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2244/0.4394, allocations: 17.96 MB / 0.5284 GB, free: 68.53 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.746/10.19, allocations: 11.38 kB / 0.5284 GB, free: 68.52 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.csv","/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