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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 104.4 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 225.6 MB / 247.8 MB, free: 3.762 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.904/2.904, allocations: 497.2 MB / 0.7812 GB, free: 12.16 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002789/0.002789, allocations: 63.91 kB / 1.134 GB, free: 13.24 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.065/1.068, allocations: 173.9 MB / 1.304 GB, free: 32.33 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.00394/1.072, allocations: 3.113 MB / 1.307 GB, free: 30.23 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001667/1.074, allocations: 1.358 MB / 1.308 GB, free: 29.29 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/1.074, allocations: 5.594 kB / 1.308 GB, free: 29.29 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0009131/1.075, allocations: 345.1 kB / 1.309 GB, free: 29.09 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002779/1.075, allocations: 140.7 kB / 1.309 GB, free: 29.01 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/1.075, allocations: 142.8 kB / 1.309 GB, free: 28.94 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.00027/1.075, allocations: 302.7 kB / 1.309 GB, free: 28.81 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003147/1.076, allocations: 196.4 kB / 1.309 GB, free: 28.73 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/1.076, allocations: 127.1 kB / 1.31 GB, free: 28.67 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002247/1.076, allocations: 148.1 kB / 1.31 GB, free: 28.61 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/1.076, allocations: 17.72 kB / 1.31 GB, free: 28.61 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002106/1.076, allocations: 172.9 kB / 1.31 GB, free: 28.55 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.746e-05/1.076, allocations: 83.58 kB / 1.31 GB, free: 28.52 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.137e-05/1.076, allocations: 111.7 kB / 1.31 GB, free: 28.45 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003321/1.077, allocations: 350.6 kB / 1.31 GB, free: 28.32 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/1.077, allocations: 0 / 1.31 GB, free: 28.32 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.273e-06/1.077, allocations: 0 / 1.31 GB, free: 28.32 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.943e-06/1.077, allocations: 0 / 1.31 GB, free: 28.32 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.0006598/1.077, allocations: 0.5176 MB / 1.311 GB, free: 27.86 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/1.078, allocations: 8.781 kB / 1.311 GB, free: 27.86 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.605e-05/1.078, allocations: 54.78 kB / 1.311 GB, free: 27.81 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005076/1.078, allocations: 79.42 kB / 1.311 GB, free: 27.79 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/1.078, allocations: 253.6 kB / 1.311 GB, free: 27.55 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/1.078, allocations: 11.22 kB / 1.311 GB, free: 27.55 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.544e-05/1.078, allocations: 16.59 kB / 1.311 GB, free: 27.54 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003526/1.079, allocations: 306 kB / 1.312 GB, free: 27.38 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/1.079, allocations: 0 / 1.312 GB, free: 27.38 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/1.079, allocations: 11.03 kB / 1.312 GB, free: 27.37 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.055e-05/1.079, allocations: 18.78 kB / 1.312 GB, free: 27.37 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002473/1.079, allocations: 196.5 kB / 1.312 GB, free: 27.3 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/1.08, allocations: 1.452 MB / 1.313 GB, free: 25.97 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/1.08, allocations: 176.9 kB / 1.313 GB, free: 25.82 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.885e-05/1.08, allocations: 35.42 kB / 1.313 GB, free: 25.8 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/1.08, allocations: 0 / 1.313 GB, free: 25.8 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.614e-05/1.08, allocations: 37.48 kB / 1.313 GB, free: 25.76 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/1.08, allocations: 0 / 1.313 GB, free: 25.76 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004293/1.081, allocations: 227.1 kB / 1.314 GB, free: 25.59 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.278e-05/1.081, allocations: 51.41 kB / 1.314 GB, free: 25.53 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/1.081, allocations: 204.4 kB / 1.314 GB, free: 25.39 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/1.081, allocations: 28.61 kB / 1.314 GB, free: 25.36 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.402e-05/1.081, allocations: 169.3 kB / 1.314 GB, free: 25.21 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/1.081, allocations: 25.97 kB / 1.314 GB, free: 25.19 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.698e-05/1.081, allocations: 38.52 kB / 1.314 GB, free: 25.16 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.225e-05/1.081, allocations: 328.8 kB / 1.314 GB, free: 24.84 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.226e-05/1.081, allocations: 33.73 kB / 1.314 GB, free: 24.82 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.41e-05/1.081, allocations: 109 kB / 1.315 GB, free: 24.72 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001257/1.081, allocations: 147.2 kB / 1.315 GB, free: 24.6 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.081, allocations: 2.219 kB / 1.315 GB, free: 24.6 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002475/1.082, allocations: 191.9 kB / 1.315 GB, free: 24.5 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/1.082, allocations: 5.75 kB / 1.315 GB, free: 24.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/1.082, allocations: 2.891 kB / 1.315 GB, free: 24.5 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001565/1.082, allocations: 27.34 kB / 1.315 GB, free: 24.48 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/1.082, allocations: 31.34 kB / 1.315 GB, free: 24.48 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007244/1.083, allocations: 1.42 MB / 1.316 GB, free: 23.05 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/1.083, allocations: 21.83 kB / 1.316 GB, free: 23.04 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/1.083, allocations: 13.61 kB / 1.316 GB, free: 23.03 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 9.717e-05/1.083, allocations: 150.2 kB / 1.317 GB, free: 22.89 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/1.083, allocations: 13.59 kB / 1.317 GB, free: 22.89 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/1.083, allocations: 18.45 kB / 1.317 GB, free: 22.88 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/1.083, allocations: 0 / 1.317 GB, free: 22.88 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/1.083, allocations: 2.875 kB / 1.317 GB, free: 22.88 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/1.083, allocations: 0 / 1.317 GB, free: 22.88 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000383/1.083, allocations: 443.7 kB / 1.317 GB, free: 22.51 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/1.083, allocations: 0 / 1.317 GB, free: 22.51 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.522e-05/1.083, allocations: 8.625 kB / 1.317 GB, free: 22.51 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.325e-05/1.084, allocations: 26.22 kB / 1.317 GB, free: 22.5 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/1.084, allocations: 6.438 kB / 1.317 GB, free: 22.49 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005915/1.084, allocations: 1.418 MB / 1.318 GB, free: 21.07 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/1.084, allocations: 0 / 1.318 GB, free: 21.07 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/1.084, allocations: 220.5 kB / 1.319 GB, free: 20.89 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 5.46e-05/1.084, allocations: 98.42 kB / 1.319 GB, free: 20.78 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.826e-05/1.084, allocations: 0 / 1.319 GB, free: 20.78 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/1.084, allocations: 2.844 kB / 1.319 GB, free: 20.78 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.659e-05/1.084, allocations: 10.03 kB / 1.319 GB, free: 20.78 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/1.084, allocations: 2.875 kB / 1.319 GB, free: 20.78 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.527e-05/1.085, allocations: 149 kB / 1.319 GB, free: 20.68 MB / 1.061 GB Notification: Performance of sort global known variables: time 5e-08/1.085, allocations: 0 / 1.319 GB, free: 20.68 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002975/1.085, allocations: 50.92 kB / 1.319 GB, free: 20.67 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.0003094/1.085, allocations: 0.7435 MB / 1.32 GB, free: 19.96 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003017/1.085, allocations: 200.9 kB / 1.32 GB, free: 19.82 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/1.085, allocations: 0 / 1.32 GB, free: 19.82 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/1.086, allocations: 144.6 kB / 1.32 GB, free: 19.7 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/1.086, allocations: 38.95 kB / 1.32 GB, free: 19.69 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/1.088, allocations: 2.062 MB / 1.322 GB, free: 18.03 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001622/1.088, allocations: 0.7512 MB / 1.323 GB, free: 17.32 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.872e-05/1.088, allocations: 23.33 kB / 1.323 GB, free: 17.32 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.199e-05/1.088, allocations: 53.66 kB / 1.323 GB, free: 17.28 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/1.088, allocations: 0 / 1.323 GB, free: 17.28 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02833/1.116, allocations: 3.755 MB / 1.327 GB, free: 16.68 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.895/11.01, allocations: 18.48 kB / 1.327 GB, free: 16.67 MB / 1.061 GB " [Timeout remaining time 289] (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_2/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: 17.489238996990025]