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.001024/0.001025, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.00117/0.00117, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.294/1.294, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1766/0.1766, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 66.16 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09425/0.09564, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008433/0.1041, allocations: 7.578 MB / 464.5 MB, free: 356 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003772/0.1079, allocations: 2.317 MB / 466.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003661/0.1083, allocations: 31.81 kB / 466.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001969/0.1103, allocations: 0.8575 MB / 467.8 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001141/0.1115, allocations: 0.5091 MB / 468.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.1126, allocations: 451 kB / 468.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001265/0.1139, allocations: 1.27 MB / 470 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008077/0.1147, allocations: 0.6699 MB / 470.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007215/0.1155, allocations: 0.5485 MB / 471.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008817/0.1164, allocations: 0.6579 MB / 471.8 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.1165, allocations: 75.94 kB / 471.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004423/0.1169, allocations: 211.7 kB / 472.1 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004638/0.1174, allocations: 498.8 kB / 472.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005033/0.1179, allocations: 0.5208 MB / 473.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001112/0.119, allocations: 1.226 MB / 474.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1191, allocations: 0 / 474.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1191, allocations: 0 / 474.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.1191, allocations: 4 kB / 474.4 MB, free: 6.492 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.002235/0.1213, allocations: 1.302 MB / 475.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.1214, allocations: 15.89 kB / 475.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002013/0.1216, allocations: 143.7 kB / 475.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009296/0.1225, allocations: 171.5 kB / 476 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.1236, allocations: 0.6804 MB / 476.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.299e-05/0.1236, allocations: 70.36 kB / 476.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.1237, allocations: 79.94 kB / 476.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.1253, allocations: 1.175 MB / 478 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.72e-05/0.1253, allocations: 4 kB / 478 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.672e-05/0.1254, allocations: 39.97 kB / 478 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.586e-05/0.1255, allocations: 61.98 kB / 478.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.1269, allocations: 0.9287 MB / 479 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005005/0.1319, allocations: 4.804 MB / 483.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.133, allocations: 0.6683 MB / 484.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005025/0.1336, allocations: 375.8 kB / 484.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.66e-05/0.1336, allocations: 4.562 kB / 484.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005907/0.1342, allocations: 439.7 kB / 485.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.865e-06/0.1342, allocations: 8 kB / 485.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005007/0.1392, allocations: 2.44 MB / 487.7 MB, free: 8.586 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.589e-05/0.1393, allocations: 170.8 kB / 487.9 MB, free: 8.383 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000626/0.14, allocations: 0.6017 MB / 488.5 MB, free: 7.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.208e-05/0.14, allocations: 37.7 kB / 488.6 MB, free: 7.727 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003116/0.1403, allocations: 490.6 kB / 489 MB, free: 7.238 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.1405, allocations: 220.8 kB / 489.2 MB, free: 7.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.1407, allocations: 154.6 kB / 489.4 MB, free: 6.863 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1409, allocations: 386.8 kB / 489.8 MB, free: 6.477 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004267/0.1413, allocations: 285.8 kB / 490.1 MB, free: 6.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.1419, allocations: 0.5524 MB / 490.6 MB, free: 5.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.143, allocations: 0.9533 MB / 491.6 MB, free: 4.426 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.143, allocations: 8 kB / 491.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001925/0.1449, allocations: 1.228 MB / 492.8 MB, free: 3.176 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.145, allocations: 33.7 kB / 492.8 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.145, allocations: 8.047 kB / 492.8 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009887/0.146, allocations: 341.5 kB / 493.2 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004738/0.1465, allocations: 139.8 kB / 493.3 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005671/0.1522, allocations: 5.401 MB / 498.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004735/0.1527, allocations: 43.88 kB / 498.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.204e-05/0.1527, allocations: 40 kB / 498.8 MB, free: 12.87 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.0004507/0.1532, allocations: 358 kB / 499.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.1533, allocations: 79.08 kB / 499.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/0.1551, allocations: 1.04 MB / 0.4885 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.1552, allocations: 7.984 kB / 0.4885 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.1552, allocations: 8 kB / 0.4885 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.1552, allocations: 4 kB / 0.4886 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003109/0.1583, allocations: 2.047 MB / 0.4905 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.1583, allocations: 160 / 0.4905 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003007/0.1586, allocations: 87.83 kB / 0.4906 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008349/0.1595, allocations: 309.6 kB / 0.4909 GB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.614e-05/0.1595, allocations: 19.94 kB / 0.4909 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005719/0.1653, allocations: 5.319 MB / 0.4961 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1653, allocations: 4 kB / 0.4961 GB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.1671, allocations: 1.115 MB / 0.4972 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.1673, allocations: 152.1 kB / 0.4974 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.1674, allocations: 19.94 kB / 0.4974 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003357/0.1678, allocations: 19.98 kB / 0.4974 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.1679, allocations: 52.44 kB / 0.4975 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.189e-05/0.168, allocations: 23.98 kB / 0.4975 GB, free: 1.711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005451/0.1685, allocations: 415 kB / 0.4979 GB, free: 1.312 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1685, allocations: 0 / 0.4979 GB, free: 1.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001042/0.1696, allocations: 268 kB / 0.4981 GB, free: 1.051 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.002042/0.1716, allocations: 1.686 MB / 0.4998 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002041/0.1737, allocations: 1.269 MB / 0.501 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1737, allocations: 0 / 0.501 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.1747, allocations: 0.7683 MB / 0.5018 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008662/0.1756, allocations: 187.2 kB / 0.502 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.1869, allocations: 7.506 MB / 0.5093 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007994/0.1878, allocations: 1.103 MB / 0.5104 GB, free: 4.004 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006196/0.1884, allocations: 178.3 kB / 0.5105 GB, free: 3.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004313/0.1888, allocations: 327.3 kB / 0.5108 GB, free: 3.504 MB / 398.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1889, allocations: 0 / 0.5108 GB, free: 3.504 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3405/0.5294, allocations: 17.97 MB / 0.5284 GB, free: 68.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.679/10.21, allocations: 1.906 kB / 0.5284 GB, free: 68.18 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 & /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