Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001652/0.001652, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.001465/0.001465, allocations: 219.2 kB / 23.04 MB, free: 5.074 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.425/1.425, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.157/3.157, allocations: 0.49 GB / 0.7959 GB, free: 33.44 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_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.002057/0.002057, allocations: 65.22 kB / 1.155 GB, free: 25.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3792, allocations: 176.1 MB / 1.327 GB, free: 1.961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005391/0.3846, allocations: 3.184 MB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002714/0.3873, allocations: 1.422 MB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001957/0.3875, allocations: 4 kB / 1.331 GB, free: 13.33 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.3887, allocations: 359.5 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004507/0.3891, allocations: 155.2 kB / 1.332 GB, free: 12.83 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004536/0.3896, allocations: 135 kB / 1.332 GB, free: 12.7 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.39, allocations: 303 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004205/0.3904, allocations: 181.1 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.3906, allocations: 139.5 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003263/0.3909, allocations: 143.5 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.391, allocations: 24 kB / 1.333 GB, free: 11.92 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003281/0.3913, allocations: 167.6 kB / 1.333 GB, free: 11.76 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.646e-05/0.3914, allocations: 83.78 kB / 1.333 GB, free: 11.68 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.3915, allocations: 111.5 kB / 1.333 GB, free: 11.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004958/0.392, allocations: 330.8 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.392, allocations: 7.938 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.303e-06/0.392, allocations: 0 / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.27e-05/0.392, allocations: 0 / 1.333 GB, free: 11.23 MB / 1.029 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.0009464/0.393, allocations: 457.5 kB / 1.334 GB, free: 10.75 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.393, allocations: 8.031 kB / 1.334 GB, free: 10.75 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.781e-05/0.393, allocations: 8.562 kB / 1.334 GB, free: 10.74 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.892e-05/0.3931, allocations: 58.72 kB / 1.334 GB, free: 10.67 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006322/0.3937, allocations: 80.72 kB / 1.334 GB, free: 10.59 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003281/0.3941, allocations: 186.2 kB / 1.334 GB, free: 10.39 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.3941, allocations: 16.69 kB / 1.334 GB, free: 10.37 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.739e-05/0.3941, allocations: 24.3 kB / 1.334 GB, free: 10.35 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004788/0.3946, allocations: 295.2 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.3946, allocations: 0 / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/0.3946, allocations: 8 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.466e-05/0.3947, allocations: 28.3 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003267/0.395, allocations: 193 kB / 1.334 GB, free: 9.809 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.3967, allocations: 1.429 MB / 1.336 GB, free: 8.227 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002519/0.3969, allocations: 90.61 kB / 1.336 GB, free: 8.129 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.533e-05/0.397, allocations: 32.84 kB / 1.336 GB, free: 8.094 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.397, allocations: 4 kB / 1.336 GB, free: 8.09 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.397, allocations: 30.56 kB / 1.336 GB, free: 8.051 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.397, allocations: 0 / 1.336 GB, free: 8.051 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004939/0.3975, allocations: 150.3 kB / 1.336 GB, free: 7.895 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.3976, allocations: 55.34 kB / 1.336 GB, free: 7.828 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.3978, allocations: 190.4 kB / 1.336 GB, free: 7.633 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.3978, allocations: 33.7 kB / 1.336 GB, free: 7.594 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.398, allocations: 176 kB / 1.337 GB, free: 7.418 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.398, allocations: 23.84 kB / 1.337 GB, free: 7.395 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-05/0.3981, allocations: 33.67 kB / 1.337 GB, free: 7.355 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3982, allocations: 326.8 kB / 1.337 GB, free: 7.027 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.482e-05/0.3983, allocations: 39.88 kB / 1.337 GB, free: 6.988 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3984, allocations: 104.5 kB / 1.337 GB, free: 6.855 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.3986, allocations: 144.5 kB / 1.337 GB, free: 6.684 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3986, allocations: 0 / 1.337 GB, free: 6.684 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003368/0.3989, allocations: 194.3 kB / 1.337 GB, free: 6.484 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.399, allocations: 9.875 kB / 1.337 GB, free: 6.477 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.399, allocations: 0 / 1.337 GB, free: 6.477 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.3991, allocations: 24.84 kB / 1.337 GB, free: 6.449 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.3993, allocations: 35.86 kB / 1.338 GB, free: 6.414 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.4005, allocations: 1.311 MB / 1.339 GB, free: 4.984 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.4006, allocations: 19.97 kB / 1.339 GB, free: 4.965 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.4006, allocations: 12.14 kB / 1.339 GB, free: 4.953 MB / 1.029 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.0001515/0.4008, allocations: 153.7 kB / 1.339 GB, free: 4.793 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.944e-05/0.4008, allocations: 15.91 kB / 1.339 GB, free: 4.777 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.003e-05/0.4008, allocations: 17.41 kB / 1.339 GB, free: 4.762 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.4008, allocations: 0 / 1.339 GB, free: 4.762 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.4009, allocations: 4 kB / 1.339 GB, free: 4.758 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.4009, allocations: 3.984 kB / 1.339 GB, free: 4.754 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005684/0.4014, allocations: 426.3 kB / 1.339 GB, free: 4.285 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4014, allocations: 0 / 1.339 GB, free: 4.285 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.931e-05/0.4015, allocations: 11.98 kB / 1.339 GB, free: 4.273 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.949e-05/0.4016, allocations: 20.84 kB / 1.339 GB, free: 4.25 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.4016, allocations: 8 kB / 1.339 GB, free: 4.242 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/0.4026, allocations: 1.304 MB / 1.341 GB, free: 2.824 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4026, allocations: 0 / 1.341 GB, free: 2.824 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002543/0.4029, allocations: 212.4 kB / 1.341 GB, free: 2.598 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.238e-05/0.4029, allocations: 27.83 kB / 1.341 GB, free: 2.57 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.801e-05/0.403, allocations: 0 / 1.341 GB, free: 2.57 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.4031, allocations: 8 kB / 1.341 GB, free: 2.562 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.243e-05/0.4031, allocations: 7.984 kB / 1.341 GB, free: 2.555 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.179e-06/0.4031, allocations: 0 / 1.341 GB, free: 2.555 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000141/0.4032, allocations: 151 kB / 1.341 GB, free: 2.406 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4032, allocations: 0 / 1.341 GB, free: 2.406 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003477/0.4036, allocations: 59.83 kB / 1.341 GB, free: 2.348 MB / 1.029 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.0005862/0.4042, allocations: 0.7444 MB / 1.342 GB, free: 1.57 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003944/0.4046, allocations: 211.2 kB / 1.342 GB, free: 1.352 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4046, allocations: 0 / 1.342 GB, free: 1.352 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.4047, allocations: 142.6 kB / 1.342 GB, free: 1.199 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000384/0.4051, allocations: 41.97 kB / 1.342 GB, free: 1.16 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/0.4076, allocations: 2.046 MB / 1.344 GB, free: 14.98 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.408, allocations: 0.7515 MB / 1.345 GB, free: 14.2 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 9.831e-05/0.408, allocations: 29.45 kB / 1.345 GB, free: 14.18 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.857e-05/0.4081, allocations: 51.42 kB / 1.345 GB, free: 14.12 MB / 1.045 GB Notification: Performance of SimCode: time 8.52e-07/0.4081, allocations: 0 / 1.345 GB, free: 14.12 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03516/0.4433, allocations: 3.915 MB / 1.349 GB, free: 10.37 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.13, allocations: 9.359 kB / 1.349 GB, free: 10.36 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.798032702005003]