Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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.001949/0.001949, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002265/0.002265, allocations: 212.9 kB / 22.25 MB, free: 5.082 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.528/1.528, allocations: 230.6 MB / 256 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.303/3.303, allocations: 0.505 GB / 0.8101 GB, free: 22.07 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.002056/0.002056, allocations: 70.08 kB / 1.177 GB, free: 17.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3446, allocations: 180.2 MB / 1.353 GB, free: 8.531 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005432/0.35, allocations: 3.205 MB / 1.356 GB, free: 5.312 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00248/0.3525, allocations: 1.418 MB / 1.357 GB, free: 3.887 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.3527, allocations: 11.94 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.3538, allocations: 345.3 kB / 1.358 GB, free: 3.539 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0004312/0.3542, allocations: 151.2 kB / 1.358 GB, free: 3.391 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.3546, allocations: 139.7 kB / 1.358 GB, free: 3.254 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004687/0.3551, allocations: 310.9 kB / 1.358 GB, free: 2.949 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004518/0.3555, allocations: 180.5 kB / 1.358 GB, free: 2.77 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.3558, allocations: 131.5 kB / 1.359 GB, free: 2.641 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003951/0.3562, allocations: 143.5 kB / 1.359 GB, free: 2.5 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.354e-05/0.3562, allocations: 20 kB / 1.359 GB, free: 2.48 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.3566, allocations: 175.6 kB / 1.359 GB, free: 2.309 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.3567, allocations: 71.8 kB / 1.359 GB, free: 2.238 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.3569, allocations: 115.5 kB / 1.359 GB, free: 2.125 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005591/0.3574, allocations: 330.8 kB / 1.359 GB, free: 1.801 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3574, allocations: 4 kB / 1.359 GB, free: 1.797 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3574, allocations: 3.938 kB / 1.359 GB, free: 1.793 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.23e-05/0.3574, allocations: 0 / 1.359 GB, free: 1.793 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009779/0.3584, allocations: 469.4 kB / 1.36 GB, free: 1.301 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.3585, allocations: 8.031 kB / 1.36 GB, free: 1.293 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.473e-05/0.3585, allocations: 54.73 kB / 1.36 GB, free: 1.23 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006057/0.3591, allocations: 84.72 kB / 1.36 GB, free: 1.148 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.3595, allocations: 178.2 kB / 1.36 GB, free: 0.9492 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.3595, allocations: 16.75 kB / 1.36 GB, free: 0.9336 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.3595, allocations: 16.38 kB / 1.36 GB, free: 0.918 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005159/0.3601, allocations: 311 kB / 1.36 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.3601, allocations: 0 / 1.36 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.3601, allocations: 8 kB / 1.36 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.922e-05/0.3601, allocations: 20.3 kB / 1.36 GB, free: 0.5664 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000354/0.3605, allocations: 196.9 kB / 1.361 GB, free: 384 kB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.3624, allocations: 1.429 MB / 1.362 GB, free: 14.79 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.3626, allocations: 90.61 kB / 1.362 GB, free: 14.69 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.642e-05/0.3627, allocations: 32.84 kB / 1.362 GB, free: 14.65 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.3627, allocations: 0 / 1.362 GB, free: 14.65 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.3627, allocations: 34.56 kB / 1.362 GB, free: 14.61 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.3627, allocations: 0 / 1.362 GB, free: 14.61 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0005228/0.3633, allocations: 154.4 kB / 1.362 GB, free: 14.45 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.3633, allocations: 51.41 kB / 1.362 GB, free: 14.39 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.3636, allocations: 203 kB / 1.363 GB, free: 14.18 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.3636, allocations: 25.7 kB / 1.363 GB, free: 14.15 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.3637, allocations: 163.9 kB / 1.363 GB, free: 13.99 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.81e-05/0.3637, allocations: 27.8 kB / 1.363 GB, free: 13.96 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.327e-05/0.3638, allocations: 37.7 kB / 1.363 GB, free: 13.92 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.364, allocations: 326.8 kB / 1.363 GB, free: 13.59 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.649e-05/0.364, allocations: 35.98 kB / 1.363 GB, free: 13.55 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.3641, allocations: 108.4 kB / 1.363 GB, free: 13.42 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.3643, allocations: 140.5 kB / 1.363 GB, free: 13.25 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3644, allocations: 4 kB / 1.363 GB, free: 13.25 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000362/0.3647, allocations: 186.2 kB / 1.364 GB, free: 13.05 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.3647, allocations: 13.7 kB / 1.364 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3647, allocations: 0 / 1.364 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002002/0.3649, allocations: 29.12 kB / 1.364 GB, free: 13.01 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.3651, allocations: 27.94 kB / 1.364 GB, free: 12.98 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.3663, allocations: 1.326 MB / 1.365 GB, free: 11.54 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.3665, allocations: 19.83 kB / 1.365 GB, free: 11.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.3665, allocations: 8 kB / 1.365 GB, free: 11.51 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001572/0.3666, allocations: 153.6 kB / 1.365 GB, free: 11.35 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.3667, allocations: 15.91 kB / 1.365 GB, free: 11.34 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.3667, allocations: 17.39 kB / 1.365 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.3667, allocations: 8.062 kB / 1.365 GB, free: 11.31 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3667, allocations: 0 / 1.365 GB, free: 11.31 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3667, allocations: 0 / 1.365 GB, free: 11.31 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005757/0.3673, allocations: 418.5 kB / 1.366 GB, free: 10.85 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.3673, allocations: 7.984 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.031e-05/0.3673, allocations: 4.047 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.839e-05/0.3674, allocations: 28.83 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.3675, allocations: 4 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001149/0.3686, allocations: 1.32 MB / 1.367 GB, free: 9.371 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3686, allocations: 80 / 1.367 GB, free: 9.371 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002621/0.3689, allocations: 216.2 kB / 1.367 GB, free: 9.141 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 6.14e-05/0.3689, allocations: 11.95 kB / 1.367 GB, free: 9.129 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.3689, allocations: 4 kB / 1.367 GB, free: 9.125 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.3691, allocations: 3.984 kB / 1.367 GB, free: 9.121 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.388e-05/0.3691, allocations: 16 kB / 1.367 GB, free: 9.105 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.3691, allocations: 0 / 1.367 GB, free: 9.105 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001535/0.3692, allocations: 151 kB / 1.367 GB, free: 8.957 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3692, allocations: 0 / 1.367 GB, free: 8.957 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003596/0.3696, allocations: 55.84 kB / 1.367 GB, free: 8.902 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005735/0.3702, allocations: 0.7444 MB / 1.368 GB, free: 8.125 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003956/0.3706, allocations: 202.5 kB / 1.368 GB, free: 7.914 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3706, allocations: 0 / 1.368 GB, free: 7.914 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001762/0.3708, allocations: 143.2 kB / 1.368 GB, free: 7.762 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.3711, allocations: 45.98 kB / 1.368 GB, free: 7.719 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/0.3738, allocations: 2.043 MB / 1.37 GB, free: 5.531 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.3742, allocations: 0.7515 MB / 1.371 GB, free: 4.754 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001127/0.3743, allocations: 21.47 kB / 1.371 GB, free: 4.734 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.3745, allocations: 59.41 kB / 1.371 GB, free: 4.676 MB / 1.061 GB Notification: Performance of SimCode: time 6.81e-07/0.3745, allocations: 0 / 1.371 GB, free: 4.676 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03943/0.4139, allocations: 3.89 MB / 1.375 GB, free: 0.9375 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.41, allocations: 8.953 kB / 1.375 GB, free: 0.9336 MB / 1.061 GB " [Timeout remaining time 287] (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.339973621070385]