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.001814/0.001814, 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.002454/0.002454, allocations: 213.5 kB / 22.24 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.461/1.461, allocations: 230.6 MB / 256 MB, free: 7.809 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.16/3.16, allocations: 0.4892 GB / 0.7943 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 177] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_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.002024/0.002024, allocations: 69.8 kB / 1.153 GB, free: 25.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3555, allocations: 176.1 MB / 1.325 GB, free: 2.414 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005251/0.3607, allocations: 3.062 MB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00237/0.3631, allocations: 1.321 MB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.3632, allocations: 7.938 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001055/0.3643, allocations: 338.7 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003421/0.3646, allocations: 147.3 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003401/0.3649, allocations: 142.6 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003694/0.3653, allocations: 303 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003815/0.3657, allocations: 177.1 kB / 1.33 GB, free: 12.92 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.3659, allocations: 139.5 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.3662, allocations: 135.5 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.707e-05/0.3662, allocations: 20 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000261/0.3665, allocations: 147.7 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.3666, allocations: 83.78 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.3667, allocations: 87.61 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004428/0.3671, allocations: 342.8 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3671, allocations: 0 / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.223e-06/0.3671, allocations: 3.938 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.3671, allocations: 0 / 1.331 GB, free: 11.98 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.000803/0.3679, allocations: 461.5 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.368, allocations: 8.031 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.419e-05/0.368, allocations: 54.73 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005569/0.3686, allocations: 80.72 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.3689, allocations: 186.2 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.3689, allocations: 12.73 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.976e-05/0.3689, allocations: 20.38 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.3695, allocations: 384.4 kB / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.3695, allocations: 0 / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.3695, allocations: 4 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-05/0.3695, allocations: 20.38 kB / 1.332 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003201/0.3699, allocations: 196.9 kB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001391/0.3712, allocations: 1.035 MB / 1.334 GB, free: 9.367 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.3715, allocations: 98.53 kB / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.674e-05/0.3715, allocations: 28.84 kB / 1.334 GB, free: 9.23 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 7.033e-06/0.3715, allocations: 4 kB / 1.334 GB, free: 9.227 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.3716, allocations: 34.56 kB / 1.334 GB, free: 9.184 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.3716, allocations: 0 / 1.334 GB, free: 9.184 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004319/0.372, allocations: 150.5 kB / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.3721, allocations: 55.34 kB / 1.334 GB, free: 8.961 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.3723, allocations: 206.3 kB / 1.334 GB, free: 8.75 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.3723, allocations: 29.7 kB / 1.334 GB, free: 8.715 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.3724, allocations: 163.9 kB / 1.334 GB, free: 8.551 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.3724, allocations: 27.78 kB / 1.334 GB, free: 8.523 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.213e-05/0.3725, allocations: 33.72 kB / 1.334 GB, free: 8.484 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3726, allocations: 334.8 kB / 1.335 GB, free: 8.148 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.773e-05/0.3727, allocations: 35.98 kB / 1.335 GB, free: 8.113 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001149/0.3728, allocations: 94.44 kB / 1.335 GB, free: 7.992 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.373, allocations: 152.3 kB / 1.335 GB, free: 7.812 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.373, allocations: 0 / 1.335 GB, free: 7.812 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003299/0.3734, allocations: 190.2 kB / 1.335 GB, free: 7.617 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3734, allocations: 7.984 kB / 1.335 GB, free: 7.609 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.3734, allocations: 4 kB / 1.335 GB, free: 7.605 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001577/0.3735, allocations: 29.12 kB / 1.335 GB, free: 7.574 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.3736, allocations: 24 kB / 1.335 GB, free: 7.551 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.3748, allocations: 1.311 MB / 1.337 GB, free: 6.121 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.3749, allocations: 19.84 kB / 1.337 GB, free: 6.102 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.3749, allocations: 8 kB / 1.337 GB, free: 6.094 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.0001411/0.3751, allocations: 157.8 kB / 1.337 GB, free: 5.93 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.3751, allocations: 11.91 kB / 1.337 GB, free: 5.918 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.338e-05/0.3751, allocations: 21.39 kB / 1.337 GB, free: 5.898 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3751, allocations: 0 / 1.337 GB, free: 5.898 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.3751, allocations: 0 / 1.337 GB, free: 5.898 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3752, allocations: 0 / 1.337 GB, free: 5.898 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005548/0.3757, allocations: 410.6 kB / 1.337 GB, free: 5.445 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3757, allocations: 0 / 1.337 GB, free: 5.445 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.838e-05/0.3757, allocations: 8.062 kB / 1.337 GB, free: 5.438 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.673e-05/0.3758, allocations: 28.84 kB / 1.337 GB, free: 5.406 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.3758, allocations: 0 / 1.337 GB, free: 5.406 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.3769, allocations: 1.312 MB / 1.339 GB, free: 3.98 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3769, allocations: 0 / 1.339 GB, free: 3.98 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002349/0.3771, allocations: 220.2 kB / 1.339 GB, free: 3.746 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.807e-05/0.3772, allocations: 19.89 kB / 1.339 GB, free: 3.727 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.3772, allocations: 8.094 kB / 1.339 GB, free: 3.719 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.3773, allocations: 8 kB / 1.339 GB, free: 3.711 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.579e-05/0.3773, allocations: 7.984 kB / 1.339 GB, free: 3.703 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.3773, allocations: 4 kB / 1.339 GB, free: 3.699 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001305/0.3775, allocations: 147 kB / 1.339 GB, free: 3.555 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3775, allocations: 3.938 kB / 1.339 GB, free: 3.551 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003192/0.3778, allocations: 51.89 kB / 1.339 GB, free: 3.5 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.0005512/0.3783, allocations: 0.7534 MB / 1.34 GB, free: 2.715 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003632/0.3787, allocations: 202.5 kB / 1.34 GB, free: 2.504 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3787, allocations: 0 / 1.34 GB, free: 2.504 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.3789, allocations: 142.7 kB / 1.34 GB, free: 2.352 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.3792, allocations: 36.47 kB / 1.34 GB, free: 2.316 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.3816, allocations: 2.055 MB / 1.342 GB, free: 128 kB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001696/0.3818, allocations: 139.9 kB / 1.342 GB, free: 15.97 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 8.826e-05/0.3819, allocations: 17.48 kB / 1.342 GB, free: 15.95 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.554e-05/0.382, allocations: 55.41 kB / 1.342 GB, free: 15.9 MB / 1.045 GB Notification: Performance of SimCode: time 3.4e-07/0.382, allocations: 4 kB / 1.342 GB, free: 15.89 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04562/0.4276, allocations: 4.372 MB / 1.347 GB, free: 11.7 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.97, allocations: 15.92 kB / 1.347 GB, free: 11.68 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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] "Error: Could not read variable sen.I in file Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv. Warning: Get data of variable sen.I from file Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.723241767380387]