Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 121 kB / 18.49 MB, free: 4.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 213.5 kB / 21.45 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.54/1.54, allocations: 230.6 MB / 254.8 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1867/0.1867, allocations: 38.51 MB / 349.4 MB, free: 2.605 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002092, allocations: 67.91 kB / 487.8 MB, free: 22.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1426, allocations: 62.42 MB / 0.5374 GB, free: 7.562 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006895/0.1495, allocations: 4.129 MB / 0.5414 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.1511, allocations: 0.8802 MB / 0.5423 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.1512, allocations: 15.88 kB / 0.5423 GB, free: 2.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002318/0.1515, allocations: 47.52 kB / 0.5423 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005078/0.152, allocations: 167.1 kB / 0.5425 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00023/0.1522, allocations: 87.81 kB / 0.5426 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004847/0.1527, allocations: 402.5 kB / 0.5429 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002222/0.1529, allocations: 90.27 kB / 0.543 GB, free: 1.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003446/0.1533, allocations: 187.2 kB / 0.5432 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002944/0.1536, allocations: 183.3 kB / 0.5434 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.673e-05/0.1536, allocations: 20 kB / 0.5434 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.525e-05/0.1537, allocations: 20 kB / 0.5434 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.1538, allocations: 95.64 kB / 0.5435 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.1539, allocations: 143.3 kB / 0.5436 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003909/0.1543, allocations: 298.6 kB / 0.5439 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1543, allocations: 0 / 0.5439 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1543, allocations: 0 / 0.5439 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1543, allocations: 0 / 0.5439 GB, free: 0.8047 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001125/0.1555, allocations: 0.6047 MB / 0.5445 GB, free: 152 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1555, allocations: 8.031 kB / 0.5445 GB, free: 144 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.541e-05/0.1555, allocations: 8.625 kB / 0.5445 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.318e-05/0.1556, allocations: 62.66 kB / 0.5446 GB, free: 60 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.692e-05/0.1556, allocations: 32.75 kB / 0.5446 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006434/0.1563, allocations: 335.2 kB / 0.5449 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.1563, allocations: 20.56 kB / 0.545 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.1565, allocations: 39.89 kB / 0.545 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004849/0.1569, allocations: 289.9 kB / 0.5453 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.157, allocations: 3.938 kB / 0.5453 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.157, allocations: 15.98 kB / 0.5453 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.157, allocations: 4 kB / 0.5453 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.1573, allocations: 187.8 kB / 0.5455 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.159, allocations: 1.276 MB / 0.5467 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.1593, allocations: 123.8 kB / 0.5468 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.825e-05/0.1594, allocations: 42.62 kB / 0.5469 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.1594, allocations: 0 / 0.5469 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.1595, allocations: 38.56 kB / 0.5469 GB, free: 13.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.552e-06/0.1595, allocations: 0 / 0.5469 GB, free: 13.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=11): time 0.001029/0.1605, allocations: 0.5399 MB / 0.5475 GB, free: 12.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.499e-05/0.1606, allocations: 106.8 kB / 0.5476 GB, free: 12.74 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.1608, allocations: 246.6 kB / 0.5478 GB, free: 12.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.1609, allocations: 29.7 kB / 0.5478 GB, free: 12.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.161, allocations: 192 kB / 0.548 GB, free: 12.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.247e-05/0.161, allocations: 47.56 kB / 0.548 GB, free: 12.22 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.766e-05/0.1611, allocations: 49.95 kB / 0.5481 GB, free: 12.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1613, allocations: 330.8 kB / 0.5484 GB, free: 11.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.992e-05/0.1614, allocations: 39.98 kB / 0.5484 GB, free: 11.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.1615, allocations: 128 kB / 0.5486 GB, free: 11.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.1618, allocations: 187.8 kB / 0.5487 GB, free: 11.4 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.1618, allocations: 4 kB / 0.5488 GB, free: 11.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004356/0.1622, allocations: 230 kB / 0.549 GB, free: 11.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1623, allocations: 4 kB / 0.549 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.1623, allocations: 4 kB / 0.549 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001377/0.1624, allocations: 37.12 kB / 0.549 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000338/0.1627, allocations: 59.94 kB / 0.5491 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.1628, allocations: 11.94 kB / 0.5491 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.1629, allocations: 8 kB / 0.5491 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.1629, allocations: 12.09 kB / 0.5491 GB, free: 11.02 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001639/0.1631, allocations: 153.6 kB / 0.5492 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.69e-05/0.1631, allocations: 19.86 kB / 0.5493 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002957/0.1634, allocations: 155.2 kB / 0.5494 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.1634, allocations: 4 kB / 0.5494 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1634, allocations: 0 / 0.5494 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1634, allocations: 0 / 0.5494 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.1638, allocations: 281.5 kB / 0.5497 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.1638, allocations: 4 kB / 0.5497 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.164, allocations: 35.92 kB / 0.5497 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.164, allocations: 4 kB / 0.5497 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.164, allocations: 7.922 kB / 0.5497 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1641, allocations: 0 / 0.5497 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.321e-06/0.1641, allocations: 4 kB / 0.5497 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004357/0.1645, allocations: 367.5 kB / 0.5501 GB, free: 9.922 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.136e-05/0.1646, allocations: 92.97 kB / 0.5502 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.1646, allocations: 7.938 kB / 0.5502 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.1647, allocations: 4 kB / 0.5502 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.708e-05/0.1648, allocations: 7.984 kB / 0.5502 GB, free: 9.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.1648, allocations: 12.05 kB / 0.5502 GB, free: 9.781 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001651/0.165, allocations: 170 kB / 0.5504 GB, free: 9.617 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.165, allocations: 0 / 0.5504 GB, free: 9.617 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003611/0.1653, allocations: 48 kB / 0.5504 GB, free: 9.57 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007506/0.1661, allocations: 0.9027 MB / 0.5513 GB, free: 8.641 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003861/0.1665, allocations: 209.7 kB / 0.5515 GB, free: 8.414 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1665, allocations: 0 / 0.5515 GB, free: 8.414 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.951e-05/0.1665, allocations: 44.8 kB / 0.5515 GB, free: 8.371 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005514/0.1671, allocations: 60.17 kB / 0.5516 GB, free: 8.312 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003443/0.1705, allocations: 2.628 MB / 0.5542 GB, free: 5.512 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.171, allocations: 0.7714 MB / 0.5549 GB, free: 4.715 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.1711, allocations: 34.27 kB / 0.555 GB, free: 4.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.1712, allocations: 91.41 kB / 0.555 GB, free: 4.59 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1712, allocations: 4 kB / 0.555 GB, free: 4.586 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.2016, allocations: 4.938 MB / 0.5599 GB, free: 15.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.69, allocations: 18.33 kB / 0.5599 GB, free: 15.79 MB / 430.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --stepSize=0.000270051 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.872373415972106]