Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.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.001794/0.001794, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002401/0.002401, allocations: 216 kB / 22.25 MB, free: 4.855 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: 7.805 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.294/3.294, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 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.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",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.002072/0.002072, allocations: 69.33 kB / 1.186 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.3847, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005943/0.3907, allocations: 3.782 MB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003129/0.3938, allocations: 1.714 MB / 1.369 GB, free: 8.586 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.3939, allocations: 11.94 kB / 1.369 GB, free: 8.574 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001519/0.3955, allocations: 492.3 kB / 1.369 GB, free: 8.094 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005536/0.396, allocations: 234.8 kB / 1.369 GB, free: 7.863 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.3965, allocations: 199.5 kB / 1.37 GB, free: 7.668 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005507/0.3971, allocations: 470.5 kB / 1.37 GB, free: 7.207 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005383/0.3976, allocations: 293.4 kB / 1.37 GB, free: 6.918 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.3979, allocations: 207.2 kB / 1.371 GB, free: 6.715 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004086/0.3983, allocations: 211.2 kB / 1.371 GB, free: 6.508 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.455e-05/0.3983, allocations: 28 kB / 1.371 GB, free: 6.48 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004015/0.3987, allocations: 223.4 kB / 1.371 GB, free: 6.262 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001494/0.3989, allocations: 131.6 kB / 1.371 GB, free: 6.133 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.3991, allocations: 143.4 kB / 1.371 GB, free: 5.992 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006797/0.3997, allocations: 0.502 MB / 1.372 GB, free: 5.488 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3997, allocations: 4 kB / 1.372 GB, free: 5.484 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3997, allocations: 3.938 kB / 1.372 GB, free: 5.48 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.3998, allocations: 0 / 1.372 GB, free: 5.48 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001119/0.4009, allocations: 0.5635 MB / 1.372 GB, free: 4.887 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.4009, allocations: 12.03 kB / 1.372 GB, free: 4.875 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.696e-05/0.401, allocations: 70.72 kB / 1.372 GB, free: 4.797 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008882/0.4019, allocations: 136.6 kB / 1.373 GB, free: 4.664 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.4023, allocations: 237.9 kB / 1.373 GB, free: 4.406 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.4024, allocations: 25.02 kB / 1.373 GB, free: 4.379 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.936e-05/0.4024, allocations: 28.38 kB / 1.373 GB, free: 4.352 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008401/0.4033, allocations: 0.5821 MB / 1.373 GB, free: 3.703 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.4033, allocations: 0 / 1.373 GB, free: 3.703 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.4033, allocations: 12 kB / 1.373 GB, free: 3.691 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.117e-05/0.4034, allocations: 32.64 kB / 1.373 GB, free: 3.66 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005443/0.4039, allocations: 326.2 kB / 1.374 GB, free: 3.344 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.406, allocations: 1.579 MB / 1.375 GB, free: 1.68 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003727/0.4064, allocations: 170.6 kB / 1.375 GB, free: 1.504 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.4066, allocations: 96.8 kB / 1.376 GB, free: 1.406 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.4067, allocations: 0 / 1.376 GB, free: 1.406 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.4067, allocations: 34.56 kB / 1.376 GB, free: 1.363 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.4067, allocations: 0 / 1.376 GB, free: 1.363 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0005951/0.4073, allocations: 229.2 kB / 1.376 GB, free: 1.133 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.4073, allocations: 55.41 kB / 1.376 GB, free: 1.066 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.4076, allocations: 277.8 kB / 1.376 GB, free: 0.7852 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.4077, allocations: 25.7 kB / 1.376 GB, free: 0.7539 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.4078, allocations: 208.3 kB / 1.376 GB, free: 0.543 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.603e-05/0.4079, allocations: 55.53 kB / 1.376 GB, free: 500 kB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.746e-05/0.4079, allocations: 49.89 kB / 1.376 GB, free: 440 kB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4081, allocations: 334.8 kB / 1.377 GB, free: 96 kB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.4082, allocations: 56.44 kB / 1.377 GB, free: 40 kB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.4084, allocations: 144 kB / 1.377 GB, free: 15.86 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002853/0.4087, allocations: 217.9 kB / 1.377 GB, free: 15.61 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4087, allocations: 4 kB / 1.377 GB, free: 15.61 MB / 1.076 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000425/0.4091, allocations: 270 kB / 1.377 GB, free: 15.33 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.4091, allocations: 8 kB / 1.377 GB, free: 15.32 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.4091, allocations: 4 kB / 1.377 GB, free: 15.32 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001662/0.4093, allocations: 20.84 kB / 1.377 GB, free: 15.3 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.4095, allocations: 56.28 kB / 1.377 GB, free: 15.24 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.4107, allocations: 1.311 MB / 1.379 GB, free: 13.82 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.4108, allocations: 31.72 kB / 1.379 GB, free: 13.79 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.4108, allocations: 8 kB / 1.379 GB, free: 13.78 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001741/0.411, allocations: 170.8 kB / 1.379 GB, free: 13.61 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.004e-05/0.4111, allocations: 24.02 kB / 1.379 GB, free: 13.58 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.313e-05/0.4111, allocations: 37.75 kB / 1.379 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.4111, allocations: 0 / 1.379 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.4111, allocations: 4.062 kB / 1.379 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.4111, allocations: 3.938 kB / 1.379 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009661/0.4121, allocations: 0.6084 MB / 1.38 GB, free: 12.86 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.4121, allocations: 4 kB / 1.38 GB, free: 12.85 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.659e-05/0.4122, allocations: 16.19 kB / 1.38 GB, free: 12.84 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.562e-05/0.4123, allocations: 32.78 kB / 1.38 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.4123, allocations: 4 kB / 1.38 GB, free: 12.8 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.4134, allocations: 1.307 MB / 1.381 GB, free: 11.38 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.4134, allocations: 3.938 kB / 1.381 GB, free: 11.38 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003859/0.4138, allocations: 325.3 kB / 1.381 GB, free: 11.02 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 8.905e-05/0.4139, allocations: 31.84 kB / 1.381 GB, free: 10.99 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.4139, allocations: 11.98 kB / 1.381 GB, free: 10.98 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.414, allocations: 8 kB / 1.381 GB, free: 10.97 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.168e-05/0.4141, allocations: 15.92 kB / 1.381 GB, free: 10.95 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.4141, allocations: 8 kB / 1.381 GB, free: 10.95 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0002027/0.4143, allocations: 189.2 kB / 1.382 GB, free: 10.76 MB / 1.076 GB Notification: Performance of sort global known variables: time 6.1e-08/0.4143, allocations: 0 / 1.382 GB, free: 10.76 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004143/0.4147, allocations: 79.78 kB / 1.382 GB, free: 10.68 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0007591/0.4155, allocations: 0.8571 MB / 1.382 GB, free: 9.777 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000508/0.416, allocations: 258.4 kB / 1.383 GB, free: 9.512 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.416, allocations: 0.75 kB / 1.383 GB, free: 9.512 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002382/0.4162, allocations: 190.6 kB / 1.383 GB, free: 9.312 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.4167, allocations: 58.75 kB / 1.383 GB, free: 9.258 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/0.4201, allocations: 2.728 MB / 1.386 GB, free: 6.336 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.4203, allocations: 190 kB / 1.386 GB, free: 6.133 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001422/0.4204, allocations: 42.25 kB / 1.386 GB, free: 6.094 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.4205, allocations: 83.41 kB / 1.386 GB, free: 6.012 MB / 1.076 GB Notification: Performance of SimCode: time 8.31e-07/0.4206, allocations: 0 / 1.386 GB, free: 6.012 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03842/0.459, allocations: 6.127 MB / 1.392 GB, free: 80 kB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.31, allocations: 9.922 kB / 1.392 GB, free: 72 kB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sen.I in file Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv. Warning: Get data of variable sen.I from file Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv failed! Error: Could not read variable sen1.I in file Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv. Warning: Get data of variable sen1.I from file Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.312022826634347]