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.001584/0.001584, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001777/0.001777, allocations: 214.1 kB / 24.52 MB, free: 3.941 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.552/1.552, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.2448/0.2448, allocations: 38.56 MB / 353.3 MB, free: 12.29 MB / 286.1 MB " [Timeout remaining time 179] 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.002055/0.002055, allocations: 63.89 kB / 493.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4256/0.4276, allocations: 62.47 MB / 0.5427 GB, free: 212 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006968/0.4346, allocations: 4.016 MB / 0.5466 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.4363, allocations: 0.8199 MB / 0.5474 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.4364, allocations: 18.69 kB / 0.5474 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002129/0.4367, allocations: 47.69 kB / 0.5475 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004895/0.4371, allocations: 175.9 kB / 0.5477 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.4373, allocations: 78 kB / 0.5477 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004839/0.4378, allocations: 401 kB / 0.5481 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.438, allocations: 74.91 kB / 0.5482 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.4384, allocations: 192.2 kB / 0.5484 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003372/0.4387, allocations: 193.5 kB / 0.5486 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.419e-05/0.4388, allocations: 20.19 kB / 0.5486 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.264e-05/0.4388, allocations: 21.34 kB / 0.5486 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.4389, allocations: 84.95 kB / 0.5487 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.4391, allocations: 118.5 kB / 0.5488 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003871/0.4395, allocations: 294.9 kB / 0.5491 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.4395, allocations: 0 / 0.5491 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4395, allocations: 1.156 kB / 0.5491 GB, free: 11.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.4395, allocations: 0 / 0.5491 GB, free: 11.39 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.001108/0.4406, allocations: 0.5331 MB / 0.5496 GB, free: 10.94 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.4406, allocations: 14.08 kB / 0.5496 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.957e-05/0.4407, allocations: 6.344 kB / 0.5496 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.287e-05/0.4407, allocations: 54.39 kB / 0.5497 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.736e-05/0.4408, allocations: 31.59 kB / 0.5497 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000599/0.4414, allocations: 291 kB / 0.55 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.4414, allocations: 21.34 kB / 0.55 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.4416, allocations: 35.5 kB / 0.55 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000479/0.442, allocations: 292.2 kB / 0.5503 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.4421, allocations: 1.25 kB / 0.5503 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.4421, allocations: 10.97 kB / 0.5503 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.4421, allocations: 5.875 kB / 0.5503 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.4424, allocations: 182.4 kB / 0.5505 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.4441, allocations: 1.19 MB / 0.5517 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.4444, allocations: 118.7 kB / 0.5518 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.362e-05/0.4445, allocations: 44.34 kB / 0.5518 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.4445, allocations: 2.438 kB / 0.5518 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.4446, allocations: 40.88 kB / 0.5519 GB, free: 8.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.4446, allocations: 0 / 0.5519 GB, free: 8.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.00104/0.4456, allocations: 469.6 kB / 0.5523 GB, free: 8.625 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.415e-05/0.4457, allocations: 108.6 kB / 0.5524 GB, free: 8.496 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.446, allocations: 249 kB / 0.5526 GB, free: 8.316 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.446, allocations: 25.7 kB / 0.5527 GB, free: 8.285 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.4462, allocations: 193.7 kB / 0.5529 GB, free: 8.109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.531e-05/0.4462, allocations: 44.7 kB / 0.5529 GB, free: 8.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.087e-05/0.4463, allocations: 40.77 kB / 0.5529 GB, free: 8.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4464, allocations: 336.3 kB / 0.5533 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.201e-05/0.4465, allocations: 40.73 kB / 0.5533 GB, free: 7.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.4467, allocations: 130.5 kB / 0.5534 GB, free: 7.551 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.447, allocations: 192.8 kB / 0.5536 GB, free: 7.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.447, allocations: 5.156 kB / 0.5536 GB, free: 7.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000442/0.4474, allocations: 230.2 kB / 0.5538 GB, free: 7.234 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.4474, allocations: 13.62 kB / 0.5538 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4474, allocations: 2.438 kB / 0.5538 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001428/0.4476, allocations: 35.84 kB / 0.5539 GB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003448/0.4479, allocations: 62.78 kB / 0.5539 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.4479, allocations: 4.5 kB / 0.5539 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.4481, allocations: 12.5 kB / 0.554 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.4481, allocations: 8.062 kB / 0.554 GB, free: 7.18 MB / 398.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.000173/0.4482, allocations: 147.4 kB / 0.5541 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.563e-05/0.4483, allocations: 21.83 kB / 0.5541 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.4486, allocations: 161.8 kB / 0.5543 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.4486, allocations: 5.375 kB / 0.5543 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4486, allocations: 1.5 kB / 0.5543 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.4486, allocations: 1.219 kB / 0.5543 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003903/0.449, allocations: 238.2 kB / 0.5545 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.449, allocations: 1.188 kB / 0.5545 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.4492, allocations: 33.59 kB / 0.5545 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.4492, allocations: 2.062 kB / 0.5545 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.4492, allocations: 5.312 kB / 0.5546 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.4492, allocations: 9.344 kB / 0.5546 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4492, allocations: 1.219 kB / 0.5546 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004296/0.4497, allocations: 369.4 kB / 0.5549 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.073e-05/0.4497, allocations: 25.53 kB / 0.5549 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.873e-05/0.4497, allocations: 11.02 kB / 0.5549 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.4499, allocations: 4.938 kB / 0.555 GB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.408e-05/0.4499, allocations: 7.828 kB / 0.555 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.4499, allocations: 3.062 kB / 0.555 GB, free: 6.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001697/0.4501, allocations: 177.5 kB / 0.5551 GB, free: 6.211 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4501, allocations: 3.938 kB / 0.5551 GB, free: 6.207 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003801/0.4505, allocations: 45.19 kB / 0.5552 GB, free: 6.203 MB / 398.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.0007689/0.4513, allocations: 0.8939 MB / 0.5561 GB, free: 5.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003396/0.4516, allocations: 122.5 kB / 0.5562 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4516, allocations: 0 / 0.5562 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.465e-05/0.4517, allocations: 46.92 kB / 0.5562 GB, free: 5.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.4522, allocations: 58.48 kB / 0.5563 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.4556, allocations: 2.628 MB / 0.5588 GB, free: 3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001843/0.4558, allocations: 162.8 kB / 0.559 GB, free: 2.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.4559, allocations: 30.28 kB / 0.559 GB, free: 2.793 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.4561, allocations: 87.41 kB / 0.5591 GB, free: 2.707 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4561, allocations: 4 kB / 0.5591 GB, free: 2.703 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02906/0.4851, allocations: 5.246 MB / 0.5642 GB, free: 13.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.36, allocations: 12 kB / 0.5642 GB, free: 13.62 MB / 414.1 MB " [Timeout remaining time 647] (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: 15.65910426597111]