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.0007276/0.0007277, allocations: 89.72 kB / 16.65 MB, free: 6.598 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.0008747/0.0008747, allocations: 182.9 kB / 17.56 MB, free: 6.203 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.18/1.18, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1602/0.1602, allocations: 38.09 MB / 330.8 MB, free: 8.52 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002685/0.0002686, allocations: 8.562 kB / 400.8 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08201/0.08229, allocations: 59.16 MB / 460 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.007764/0.09009, allocations: 8.762 MB / 468.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004152/0.09426, allocations: 2.812 MB / 471.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.09462, allocations: 55.62 kB / 471.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004803/0.09511, allocations: 226.5 kB / 471.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007737/0.09589, allocations: 477.9 kB / 472.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008055/0.09671, allocations: 403.3 kB / 472.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001456/0.09818, allocations: 1.941 MB / 474.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001442/0.09963, allocations: 1.102 MB / 475.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004694/0.1001, allocations: 449.8 kB / 476.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007431/0.1009, allocations: 0.654 MB / 476.8 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.206e-05/0.1009, allocations: 36 kB / 476.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.1013, allocations: 187.7 kB / 477 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003561/0.1016, allocations: 454.7 kB / 477.5 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003969/0.102, allocations: 0.4951 MB / 478 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008942/0.1029, allocations: 1.183 MB / 479.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.103, allocations: 0 / 479.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.103, allocations: 0 / 479.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.103, allocations: 0 / 479.2 MB, free: 3.648 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.001705/0.1047, allocations: 1.135 MB / 480.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1047, allocations: 8.031 kB / 480.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.1049, allocations: 143.7 kB / 480.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008164/0.1057, allocations: 163.5 kB / 480.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009233/0.1066, allocations: 0.6881 MB / 481.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.1067, allocations: 62.38 kB / 481.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.1068, allocations: 91.92 kB / 481.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.1083, allocations: 1.167 MB / 482.6 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.912e-05/0.1084, allocations: 11.94 kB / 482.6 MB, free: 0 / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.942e-05/0.1085, allocations: 36.05 kB / 482.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-05/0.1086, allocations: 53.98 kB / 482.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.1099, allocations: 0.9288 MB / 483.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004605/0.1145, allocations: 4.811 MB / 488.4 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.1155, allocations: 0.664 MB / 489.1 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004946/0.116, allocations: 379.8 kB / 489.5 MB, free: 8.891 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.916e-05/0.1161, allocations: 16.47 kB / 489.5 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005634/0.1166, allocations: 447.8 kB / 489.9 MB, free: 8.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 1.723e-06/0.1167, allocations: 0 / 489.9 MB, free: 8.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.00473/0.1214, allocations: 2.455 MB / 492.4 MB, free: 5.887 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.1215, allocations: 170.8 kB / 492.6 MB, free: 5.684 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006252/0.1221, allocations: 0.5978 MB / 493.2 MB, free: 5.078 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.352e-05/0.1222, allocations: 41.69 kB / 493.2 MB, free: 5.031 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000288/0.1225, allocations: 486.6 kB / 493.7 MB, free: 4.547 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.1226, allocations: 228.8 kB / 493.9 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.925e-05/0.1227, allocations: 77.67 kB / 494 MB, free: 4.238 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1229, allocations: 386.8 kB / 494.3 MB, free: 3.852 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004189/0.1233, allocations: 281.8 kB / 494.6 MB, free: 3.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005662/0.1239, allocations: 0.5563 MB / 495.2 MB, free: 2.895 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.125, allocations: 0.9572 MB / 496.1 MB, free: 1.801 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.125, allocations: 0 / 496.1 MB, free: 1.801 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001889/0.1269, allocations: 1.224 MB / 497.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/0.1269, allocations: 37.83 kB / 497.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1269, allocations: 12 kB / 497.4 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009433/0.1279, allocations: 333.4 kB / 497.7 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004613/0.1284, allocations: 151.7 kB / 497.9 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005104/0.1335, allocations: 4.951 MB / 0.491 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003976/0.1339, allocations: 28 kB / 0.4911 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-05/0.134, allocations: 51.92 kB / 0.4911 GB, free: 10.7 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.0003743/0.1343, allocations: 357.5 kB / 0.4915 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.519e-05/0.1344, allocations: 75.06 kB / 0.4915 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001748/0.1362, allocations: 1.04 MB / 0.4925 GB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.138e-06/0.1362, allocations: 8 kB / 0.4926 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.767e-05/0.1362, allocations: 11.88 kB / 0.4926 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.1362, allocations: 3.984 kB / 0.4926 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.1391, allocations: 2.059 MB / 0.4946 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.1391, allocations: 4 kB / 0.4946 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.1394, allocations: 67.91 kB / 0.4947 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007961/0.1402, allocations: 317.8 kB / 0.495 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.1402, allocations: 16 kB / 0.495 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00516/0.1454, allocations: 4.886 MB / 0.4997 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1454, allocations: 4 kB / 0.4997 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.1471, allocations: 1.123 MB / 0.5008 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.1472, allocations: 148.2 kB / 0.501 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.294e-05/0.1473, allocations: 16 kB / 0.501 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003182/0.1477, allocations: 19.98 kB / 0.501 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.1478, allocations: 60.44 kB / 0.5011 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.1475/0.2953, allocations: 19.02 kB / 0.5011 GB, free: 55.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005706/0.2959, allocations: 418.4 kB / 0.5015 GB, free: 55.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.2959, allocations: 0.875 kB / 0.5015 GB, free: 55.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001073/0.297, allocations: 268 kB / 0.5017 GB, free: 55.07 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.001953/0.299, allocations: 1.675 MB / 0.5034 GB, free: 54.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.3006, allocations: 1.144 MB / 0.5045 GB, free: 53.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3006, allocations: 0 / 0.5045 GB, free: 53.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009464/0.3015, allocations: 0.7591 MB / 0.5052 GB, free: 53.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009305/0.3025, allocations: 170.2 kB / 0.5054 GB, free: 53.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008733/0.3112, allocations: 7.896 MB / 0.5131 GB, free: 49.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/0.3119, allocations: 1.099 MB / 0.5142 GB, free: 48.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004987/0.3124, allocations: 178.4 kB / 0.5144 GB, free: 48.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.3127, allocations: 328.6 kB / 0.5147 GB, free: 48.59 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3127, allocations: 1.062 kB / 0.5147 GB, free: 48.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2042/0.5169, allocations: 17.08 MB / 0.5314 GB, free: 39.64 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/0.5171, allocations: 239.8 kB / 0.5316 GB, free: 39.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.027/2.544, allocations: 4 kB / 0.5316 GB, free: 39.38 MB / 382.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","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches