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.001367/0.001367, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.00143/0.00143, allocations: 220.1 kB / 23.03 MB, free: 4.922 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.259/3.259, allocations: 0.5003 GB / 0.8062 GB, free: 28.27 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="cs",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.00195/0.00195, allocations: 62.66 kB / 1.17 GB, free: 19.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3588, allocations: 179 MB / 1.345 GB, free: 15.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004835/0.3636, allocations: 3.06 MB / 1.348 GB, free: 12.9 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002209/0.3658, allocations: 1.309 MB / 1.35 GB, free: 11.58 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.3659, allocations: 4 kB / 1.35 GB, free: 11.58 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.367, allocations: 342.7 kB / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000355/0.3673, allocations: 147.2 kB / 1.35 GB, free: 11.1 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003478/0.3677, allocations: 139.7 kB / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003812/0.3681, allocations: 310.7 kB / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003982/0.3685, allocations: 188.5 kB / 1.351 GB, free: 10.47 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.3686, allocations: 131.5 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003155/0.3689, allocations: 139.5 kB / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.369, allocations: 20 kB / 1.351 GB, free: 10.18 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002828/0.3693, allocations: 155.6 kB / 1.351 GB, free: 10.03 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.3694, allocations: 79.8 kB / 1.351 GB, free: 9.953 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.3695, allocations: 91.58 kB / 1.351 GB, free: 9.863 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004626/0.3699, allocations: 338.8 kB / 1.352 GB, free: 9.531 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3699, allocations: 3.938 kB / 1.352 GB, free: 9.527 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3699, allocations: 7.938 kB / 1.352 GB, free: 9.52 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.593e-06/0.37, allocations: 0 / 1.352 GB, free: 9.52 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.0008724/0.3708, allocations: 449.5 kB / 1.352 GB, free: 9.047 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.3709, allocations: 12.03 kB / 1.352 GB, free: 9.035 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.049e-05/0.3709, allocations: 8.562 kB / 1.352 GB, free: 9.027 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.873e-05/0.3709, allocations: 54.73 kB / 1.352 GB, free: 8.965 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005962/0.3715, allocations: 84.7 kB / 1.352 GB, free: 8.883 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.3719, allocations: 186.2 kB / 1.352 GB, free: 8.676 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.3719, allocations: 12.75 kB / 1.352 GB, free: 8.664 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.3719, allocations: 20.38 kB / 1.352 GB, free: 8.645 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005651/0.3725, allocations: 383.8 kB / 1.353 GB, free: 8.227 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3725, allocations: 0 / 1.353 GB, free: 8.227 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.3725, allocations: 8 kB / 1.353 GB, free: 8.219 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-05/0.3726, allocations: 20.36 kB / 1.353 GB, free: 8.199 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003284/0.3729, allocations: 200.9 kB / 1.353 GB, free: 8 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.3744, allocations: 1.031 MB / 1.354 GB, free: 6.902 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.3746, allocations: 90.61 kB / 1.354 GB, free: 6.805 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.111e-05/0.3747, allocations: 32.84 kB / 1.354 GB, free: 6.77 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 9.858e-06/0.3747, allocations: 4.031 kB / 1.354 GB, free: 6.766 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.3747, allocations: 38.56 kB / 1.354 GB, free: 6.719 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.3747, allocations: 0 / 1.354 GB, free: 6.719 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004893/0.3752, allocations: 154.3 kB / 1.354 GB, free: 6.559 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.3753, allocations: 51.41 kB / 1.354 GB, free: 6.496 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/0.3755, allocations: 195.6 kB / 1.354 GB, free: 6.297 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.3755, allocations: 29.7 kB / 1.354 GB, free: 6.262 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.3756, allocations: 172 kB / 1.355 GB, free: 6.09 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.3757, allocations: 23.81 kB / 1.355 GB, free: 6.066 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.172e-05/0.3757, allocations: 33.7 kB / 1.355 GB, free: 6.027 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3759, allocations: 334.8 kB / 1.355 GB, free: 5.691 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.826e-05/0.3759, allocations: 35.98 kB / 1.355 GB, free: 5.656 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.3761, allocations: 100.5 kB / 1.355 GB, free: 5.527 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.3763, allocations: 144.4 kB / 1.355 GB, free: 5.355 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.3763, allocations: 4 kB / 1.355 GB, free: 5.352 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000319/0.3766, allocations: 190.1 kB / 1.355 GB, free: 5.156 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.3766, allocations: 4 kB / 1.355 GB, free: 5.152 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3766, allocations: 4.062 kB / 1.355 GB, free: 5.148 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001825/0.3768, allocations: 33.12 kB / 1.356 GB, free: 5.113 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.3769, allocations: 35.86 kB / 1.356 GB, free: 5.078 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.3781, allocations: 1.307 MB / 1.357 GB, free: 3.648 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.3782, allocations: 19.84 kB / 1.357 GB, free: 3.629 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.3782, allocations: 8 kB / 1.357 GB, free: 3.621 MB / 1.045 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.0001539/0.3784, allocations: 157.8 kB / 1.357 GB, free: 3.457 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.82e-05/0.3784, allocations: 11.95 kB / 1.357 GB, free: 3.445 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.695e-05/0.3785, allocations: 13.41 kB / 1.357 GB, free: 3.438 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3785, allocations: 0 / 1.357 GB, free: 3.438 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.3785, allocations: 0 / 1.357 GB, free: 3.438 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.3785, allocations: 0 / 1.357 GB, free: 3.438 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005353/0.379, allocations: 418.2 kB / 1.357 GB, free: 2.977 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.379, allocations: 0 / 1.357 GB, free: 2.977 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.858e-05/0.379, allocations: 8 kB / 1.357 GB, free: 2.969 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.098e-05/0.3791, allocations: 24.84 kB / 1.357 GB, free: 2.941 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.3791, allocations: 3.984 kB / 1.357 GB, free: 2.938 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.3802, allocations: 1.316 MB / 1.359 GB, free: 1.512 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3802, allocations: 4 kB / 1.359 GB, free: 1.508 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002321/0.3804, allocations: 208.2 kB / 1.359 GB, free: 1.285 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.047e-05/0.3804, allocations: 19.94 kB / 1.359 GB, free: 1.266 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.3805, allocations: 160 / 1.359 GB, free: 1.266 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.3806, allocations: 15.94 kB / 1.359 GB, free: 1.25 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.3806, allocations: 3.984 kB / 1.359 GB, free: 1.246 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.3806, allocations: 4 kB / 1.359 GB, free: 1.242 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001371/0.3807, allocations: 147 kB / 1.359 GB, free: 1.098 MB / 1.045 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3807, allocations: 0 / 1.359 GB, free: 1.098 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003337/0.3811, allocations: 63.78 kB / 1.359 GB, free: 1.035 MB / 1.045 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.0005463/0.3816, allocations: 0.7384 MB / 1.36 GB, free: 272 kB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003807/0.382, allocations: 206.6 kB / 1.36 GB, free: 52 kB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.382, allocations: 0 / 1.36 GB, free: 52 kB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.3822, allocations: 146.7 kB / 1.36 GB, free: 15.89 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.3826, allocations: 37.69 kB / 1.36 GB, free: 15.86 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.3849, allocations: 2.05 MB / 1.362 GB, free: 13.67 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.3851, allocations: 139.9 kB / 1.362 GB, free: 13.51 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.094e-05/0.3852, allocations: 21.47 kB / 1.362 GB, free: 13.49 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.583e-05/0.3853, allocations: 51.42 kB / 1.362 GB, free: 13.44 MB / 1.061 GB Notification: Performance of SimCode: time 3.8e-07/0.3853, allocations: 0 / 1.362 GB, free: 13.44 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03502/0.4203, allocations: 4.067 MB / 1.366 GB, free: 9.57 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.22, allocations: 8.328 kB / 1.366 GB, free: 9.566 MB / 1.061 GB " [Timeout remaining time 288] (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.14872324105818]