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.001312/0.001312, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00229/0.00229, allocations: 214.4 kB / 22.24 MB, free: 5.262 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.781 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.362/3.362, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 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.003227/0.003227, allocations: 65.47 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3725, allocations: 181.9 MB / 1.363 GB, free: 14.07 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005828/0.3783, allocations: 3.069 MB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002696/0.381, allocations: 1.305 MB / 1.368 GB, free: 9.668 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.3813, allocations: 8 kB / 1.368 GB, free: 9.66 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.3825, allocations: 346.7 kB / 1.368 GB, free: 9.32 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0004476/0.3829, allocations: 143.2 kB / 1.368 GB, free: 9.18 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.3833, allocations: 139.6 kB / 1.368 GB, free: 9.043 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.00048/0.3838, allocations: 306.9 kB / 1.369 GB, free: 8.742 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004493/0.3843, allocations: 180.5 kB / 1.369 GB, free: 8.566 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002267/0.3845, allocations: 139.5 kB / 1.369 GB, free: 8.43 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003754/0.3849, allocations: 135.5 kB / 1.369 GB, free: 8.297 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.3849, allocations: 20 kB / 1.369 GB, free: 8.277 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003256/0.3852, allocations: 147.7 kB / 1.369 GB, free: 8.133 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.3853, allocations: 79.8 kB / 1.369 GB, free: 8.055 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.3855, allocations: 91.59 kB / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005145/0.386, allocations: 342.7 kB / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.386, allocations: 0 / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.383e-06/0.386, allocations: 0 / 1.37 GB, free: 7.629 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.657e-06/0.386, allocations: 0 / 1.37 GB, free: 7.629 MB / 1.061 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.0009514/0.387, allocations: 461.5 kB / 1.37 GB, free: 7.145 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.387, allocations: 12.03 kB / 1.37 GB, free: 7.133 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.73e-05/0.3871, allocations: 54.73 kB / 1.37 GB, free: 7.07 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000619/0.3877, allocations: 80.72 kB / 1.37 GB, free: 6.992 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.3881, allocations: 184.1 kB / 1.37 GB, free: 6.789 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.767e-05/0.3881, allocations: 20.73 kB / 1.37 GB, free: 6.77 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.3881, allocations: 16.38 kB / 1.37 GB, free: 6.754 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005808/0.3887, allocations: 380.4 kB / 1.371 GB, free: 6.344 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3887, allocations: 4 kB / 1.371 GB, free: 6.34 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.3887, allocations: 4 kB / 1.371 GB, free: 6.336 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.844e-05/0.3888, allocations: 12.38 kB / 1.371 GB, free: 6.324 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003522/0.3891, allocations: 200.9 kB / 1.371 GB, free: 6.129 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.3907, allocations: 1.031 MB / 1.372 GB, free: 5.023 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.391, allocations: 94.59 kB / 1.372 GB, free: 4.922 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.341e-05/0.391, allocations: 28.84 kB / 1.372 GB, free: 4.891 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.391, allocations: 4 kB / 1.372 GB, free: 4.887 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.3911, allocations: 34.56 kB / 1.372 GB, free: 4.844 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.733e-06/0.3911, allocations: 3.938 kB / 1.372 GB, free: 4.84 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004849/0.3916, allocations: 154.7 kB / 1.372 GB, free: 4.68 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.3916, allocations: 51.41 kB / 1.372 GB, free: 4.617 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.3918, allocations: 207.8 kB / 1.373 GB, free: 4.406 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.3918, allocations: 25.7 kB / 1.373 GB, free: 4.375 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.392, allocations: 163.9 kB / 1.373 GB, free: 4.211 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.392, allocations: 27.78 kB / 1.373 GB, free: 4.184 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.757e-05/0.3921, allocations: 37.67 kB / 1.373 GB, free: 4.141 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3922, allocations: 326.8 kB / 1.373 GB, free: 3.812 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.906e-05/0.3923, allocations: 35.97 kB / 1.373 GB, free: 3.777 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.3924, allocations: 106.8 kB / 1.373 GB, free: 3.645 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002021/0.3926, allocations: 148.4 kB / 1.373 GB, free: 3.469 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3926, allocations: 0 / 1.373 GB, free: 3.469 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003505/0.393, allocations: 190.2 kB / 1.374 GB, free: 3.273 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.393, allocations: 8 kB / 1.374 GB, free: 3.266 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.393, allocations: 4.078 kB / 1.374 GB, free: 3.262 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001656/0.3932, allocations: 24.84 kB / 1.374 GB, free: 3.234 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.3933, allocations: 27.92 kB / 1.374 GB, free: 3.207 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001246/0.3945, allocations: 1.319 MB / 1.375 GB, free: 1.77 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.3947, allocations: 15.98 kB / 1.375 GB, free: 1.754 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.3947, allocations: 12 kB / 1.375 GB, free: 1.742 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.0001538/0.3949, allocations: 149.6 kB / 1.375 GB, free: 1.586 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.3949, allocations: 15.91 kB / 1.375 GB, free: 1.57 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.802e-05/0.3949, allocations: 21.39 kB / 1.375 GB, free: 1.551 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3949, allocations: 8.156 kB / 1.375 GB, free: 1.543 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.3949, allocations: 0 / 1.375 GB, free: 1.543 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.3949, allocations: 0 / 1.375 GB, free: 1.543 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005823/0.3955, allocations: 402.3 kB / 1.376 GB, free: 1.098 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3955, allocations: 4 kB / 1.376 GB, free: 1.094 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.397e-05/0.3956, allocations: 7.984 kB / 1.376 GB, free: 1.086 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.998e-05/0.3957, allocations: 24.84 kB / 1.376 GB, free: 1.059 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.3957, allocations: 0 / 1.376 GB, free: 1.059 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.3968, allocations: 1.311 MB / 1.377 GB, free: 15.63 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3968, allocations: 0 / 1.377 GB, free: 15.63 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002672/0.3971, allocations: 220.1 kB / 1.377 GB, free: 15.4 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.3972, allocations: 19.91 kB / 1.377 GB, free: 15.38 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.3972, allocations: 3.984 kB / 1.377 GB, free: 15.38 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.3973, allocations: 4.094 kB / 1.377 GB, free: 15.37 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.3973, allocations: 7.938 kB / 1.377 GB, free: 15.36 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.3973, allocations: 4.141 kB / 1.377 GB, free: 15.36 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001524/0.3975, allocations: 151.3 kB / 1.377 GB, free: 15.21 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.3975, allocations: 0 / 1.377 GB, free: 15.21 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000346/0.3978, allocations: 51.89 kB / 1.377 GB, free: 15.16 MB / 1.076 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.0005991/0.3984, allocations: 0.7482 MB / 1.378 GB, free: 14.38 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003999/0.3988, allocations: 199 kB / 1.378 GB, free: 14.17 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3988, allocations: 8.125 kB / 1.378 GB, free: 14.16 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001799/0.399, allocations: 146.6 kB / 1.378 GB, free: 14.01 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003884/0.3994, allocations: 42.72 kB / 1.378 GB, free: 13.97 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.402, allocations: 2.05 MB / 1.38 GB, free: 11.79 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001562/0.4021, allocations: 135.9 kB / 1.381 GB, free: 11.63 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001075/0.4023, allocations: 29.45 kB / 1.381 GB, free: 11.6 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.704e-05/0.4023, allocations: 51.42 kB / 1.381 GB, free: 11.55 MB / 1.076 GB Notification: Performance of SimCode: time 8.81e-07/0.4023, allocations: 0 / 1.381 GB, free: 11.55 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03611/0.4385, allocations: 4.369 MB / 1.385 GB, free: 7.355 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.07, allocations: 6.406 kB / 1.385 GB, free: 7.352 MB / 1.076 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: 18.976975267287344]