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.001574/0.001574, allocations: 97.33 kB / 16.5 MB, free: 6.641 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.001788/0.001789, allocations: 194.3 kB / 17.42 MB, free: 6.066 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.248/1.248, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1616/0.1616, allocations: 38.04 MB / 329.3 MB, free: 9.055 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 55.75 kB / 398.2 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09812/0.09924, allocations: 58.07 MB / 456.2 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008615/0.1079, allocations: 9.214 MB / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00421/0.1121, allocations: 2.855 MB / 468.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004116/0.1126, allocations: 63.62 kB / 468.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.1144, allocations: 0.8125 MB / 469.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007777/0.1151, allocations: 485.9 kB / 469.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008161/0.116, allocations: 395.3 kB / 470.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001471/0.1174, allocations: 1.937 MB / 472 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007616/0.1182, allocations: 0.6617 MB / 472.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005048/0.1187, allocations: 485.8 kB / 473.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007539/0.1195, allocations: 0.7007 MB / 473.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.599e-05/0.1196, allocations: 56 kB / 473.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00036/0.12, allocations: 199.7 kB / 474.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003895/0.1204, allocations: 474.8 kB / 474.5 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004663/0.1208, allocations: 0.5013 MB / 475 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001088/0.1219, allocations: 1.207 MB / 476.2 MB, free: 4.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.122, allocations: 4 kB / 476.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.122, allocations: 0 / 476.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.122, allocations: 0 / 476.3 MB, free: 4.355 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.00198/0.124, allocations: 1.301 MB / 477.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.124, allocations: 8.031 kB / 477.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001405/0.1242, allocations: 143.7 kB / 477.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007792/0.1249, allocations: 163.4 kB / 477.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009741/0.1259, allocations: 0.6921 MB / 478.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.711e-05/0.126, allocations: 62.38 kB / 478.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.1261, allocations: 91.78 kB / 478.7 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.1276, allocations: 1.171 MB / 479.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.805e-05/0.1276, allocations: 11.92 kB / 479.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-05/0.1277, allocations: 39.98 kB / 479.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.264e-05/0.1278, allocations: 57.97 kB / 480 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/0.1292, allocations: 0.9289 MB / 480.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00487/0.134, allocations: 4.795 MB / 485.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.1351, allocations: 0.6718 MB / 486.4 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004701/0.1355, allocations: 379.8 kB / 486.8 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.015e-05/0.1356, allocations: 16.48 kB / 486.8 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000561/0.1362, allocations: 439.7 kB / 487.2 MB, free: 8.953 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.164e-06/0.1362, allocations: 0 / 487.2 MB, free: 8.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.004825/0.141, allocations: 2.44 MB / 489.6 MB, free: 6.445 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.1412, allocations: 170.8 kB / 489.8 MB, free: 6.242 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006595/0.1418, allocations: 0.59 MB / 490.4 MB, free: 5.645 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.1419, allocations: 37.7 kB / 490.4 MB, free: 5.602 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003429/0.1422, allocations: 490.5 kB / 490.9 MB, free: 5.113 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.1424, allocations: 224.9 kB / 491.1 MB, free: 4.891 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.1426, allocations: 158.5 kB / 491.3 MB, free: 4.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1428, allocations: 386.8 kB / 491.7 MB, free: 4.344 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004325/0.1432, allocations: 289.8 kB / 491.9 MB, free: 4.059 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006053/0.1438, allocations: 0.5524 MB / 492.5 MB, free: 3.383 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.1449, allocations: 0.9572 MB / 493.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.145, allocations: 4 kB / 493.5 MB, free: 2.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001899/0.1469, allocations: 1.219 MB / 494.7 MB, free: 1.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.728e-05/0.1469, allocations: 38.56 kB / 494.7 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.1469, allocations: 11.98 kB / 494.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009937/0.1479, allocations: 341.4 kB / 495.1 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.1484, allocations: 143.7 kB / 495.2 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00544/0.1539, allocations: 4.948 MB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005339/0.1544, allocations: 36.03 kB / 0.4885 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.629e-05/0.1545, allocations: 39.94 kB / 0.4885 GB, free: 11.2 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.0005322/0.155, allocations: 356.1 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1551, allocations: 79.06 kB / 0.4889 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/0.157, allocations: 1.04 MB / 0.4899 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1571, allocations: 4 kB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.1571, allocations: 11.94 kB / 0.4899 GB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.1571, allocations: 7.984 kB / 0.49 GB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003063/0.1601, allocations: 2.055 MB / 0.492 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.1602, allocations: 0 / 0.492 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000298/0.1605, allocations: 84.05 kB / 0.492 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008626/0.1613, allocations: 309.4 kB / 0.4923 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.142e-05/0.1614, allocations: 16 kB / 0.4923 GB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005558/0.167, allocations: 4.878 MB / 0.4971 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.167, allocations: 8 kB / 0.4971 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.1688, allocations: 1.111 MB / 0.4982 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.1689, allocations: 144.2 kB / 0.4983 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.847e-05/0.1691, allocations: 24 kB / 0.4984 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.1694, allocations: 19.98 kB / 0.4984 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.1695, allocations: 52.44 kB / 0.4984 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.3e-05/0.1696, allocations: 19.98 kB / 0.4985 GB, free: 0.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004829/0.17, allocations: 423 kB / 0.4989 GB, free: 92 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.17, allocations: 0 / 0.4989 GB, free: 92 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009131/0.171, allocations: 272 kB / 0.4991 GB, free: 15.82 MB / 398.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.002093/0.1731, allocations: 1.683 MB / 0.5008 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001799/0.1749, allocations: 1.144 MB / 0.5019 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1749, allocations: 4 kB / 0.5019 GB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.176, allocations: 0.7605 MB / 0.5026 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008593/0.1769, allocations: 172.7 kB / 0.5028 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.1877, allocations: 7.855 MB / 0.5105 GB, free: 3.707 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.1887, allocations: 1.103 MB / 0.5115 GB, free: 2.578 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008849/0.1896, allocations: 178.3 kB / 0.5117 GB, free: 2.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005424/0.1902, allocations: 327.3 kB / 0.512 GB, free: 2.078 MB / 398.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1902, allocations: 0 / 0.512 GB, free: 2.078 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1844/0.3746, allocations: 17.3 MB / 0.5289 GB, free: 66.93 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.3748, allocations: 239.7 kB / 0.5291 GB, free: 66.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/2.5, allocations: 0 / 0.5291 GB, free: 66.68 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","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches