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.001683/0.001683, allocations: 105.1 kB / 16.45 MB, free: 6.453 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.001649/0.001649, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.441/1.441, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.119/3.119, allocations: 0.49 GB / 0.7916 GB, free: 33.27 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.002016/0.002016, allocations: 65.38 kB / 1.149 GB, free: 26.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3422, allocations: 176.1 MB / 1.321 GB, free: 3.348 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005138/0.3473, allocations: 3.125 MB / 1.324 GB, free: 216 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002309/0.3496, allocations: 1.391 MB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.3497, allocations: 7.938 kB / 1.325 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.3508, allocations: 338.7 kB / 1.326 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003471/0.3511, allocations: 147.2 kB / 1.326 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003588/0.3515, allocations: 150.9 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003803/0.3519, allocations: 303 kB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003786/0.3522, allocations: 188.6 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.3524, allocations: 131.5 kB / 1.326 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.3527, allocations: 151.5 kB / 1.327 GB, free: 13.42 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.3527, allocations: 20 kB / 1.327 GB, free: 13.4 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002756/0.353, allocations: 163.6 kB / 1.327 GB, free: 13.24 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.793e-05/0.3531, allocations: 87.72 kB / 1.327 GB, free: 13.16 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.3532, allocations: 103.5 kB / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004422/0.3537, allocations: 342.7 kB / 1.327 GB, free: 12.72 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3537, allocations: 4 kB / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3537, allocations: 0 / 1.327 GB, free: 12.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.3537, allocations: 0 / 1.327 GB, free: 12.71 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.00084/0.3545, allocations: 0.5278 MB / 1.328 GB, free: 12.14 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.3546, allocations: 11.98 kB / 1.328 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.662e-05/0.3546, allocations: 54.73 kB / 1.328 GB, free: 12.06 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005715/0.3552, allocations: 80.72 kB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.3555, allocations: 244 kB / 1.328 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.3556, allocations: 8.75 kB / 1.328 GB, free: 11.7 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.3556, allocations: 24.36 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/0.3561, allocations: 303.2 kB / 1.328 GB, free: 11.35 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.3561, allocations: 0 / 1.328 GB, free: 11.35 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.3561, allocations: 8 kB / 1.328 GB, free: 11.34 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-05/0.3561, allocations: 20.36 kB / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003323/0.3565, allocations: 196.9 kB / 1.329 GB, free: 11.13 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.358, allocations: 1.464 MB / 1.33 GB, free: 9.504 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.3583, allocations: 171.8 kB / 1.33 GB, free: 9.309 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.405e-05/0.3584, allocations: 36.83 kB / 1.33 GB, free: 9.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.3584, allocations: 0 / 1.33 GB, free: 9.27 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.3584, allocations: 30.56 kB / 1.33 GB, free: 9.23 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.3584, allocations: 0 / 1.33 GB, free: 9.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004821/0.3589, allocations: 231.5 kB / 1.331 GB, free: 8.977 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.3589, allocations: 51.41 kB / 1.331 GB, free: 8.914 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.3591, allocations: 191 kB / 1.331 GB, free: 8.719 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.3592, allocations: 25.7 kB / 1.331 GB, free: 8.688 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.3593, allocations: 176.1 kB / 1.331 GB, free: 8.512 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.3593, allocations: 23.78 kB / 1.331 GB, free: 8.488 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.897e-05/0.3594, allocations: 37.66 kB / 1.331 GB, free: 8.445 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3595, allocations: 330.8 kB / 1.331 GB, free: 8.113 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.726e-05/0.3596, allocations: 39.98 kB / 1.331 GB, free: 8.074 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/0.3597, allocations: 96.5 kB / 1.331 GB, free: 7.949 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.3599, allocations: 144.5 kB / 1.332 GB, free: 7.777 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3599, allocations: 4 kB / 1.332 GB, free: 7.773 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003176/0.3602, allocations: 186.2 kB / 1.332 GB, free: 7.582 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.3602, allocations: 14.64 kB / 1.332 GB, free: 7.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3602, allocations: 96 / 1.332 GB, free: 7.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/0.3604, allocations: 29.06 kB / 1.332 GB, free: 7.539 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.3605, allocations: 31.94 kB / 1.332 GB, free: 7.508 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/0.3618, allocations: 1.427 MB / 1.333 GB, free: 5.941 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.3619, allocations: 15.89 kB / 1.333 GB, free: 5.926 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.3619, allocations: 8 kB / 1.333 GB, free: 5.918 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.0001422/0.362, allocations: 151.9 kB / 1.333 GB, free: 5.762 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.239e-05/0.3621, allocations: 15.91 kB / 1.333 GB, free: 5.746 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.395e-05/0.3621, allocations: 21.39 kB / 1.333 GB, free: 5.727 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.3621, allocations: 4.062 kB / 1.333 GB, free: 5.723 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.3621, allocations: 0 / 1.333 GB, free: 5.723 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.3621, allocations: 0 / 1.333 GB, free: 5.723 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005402/0.3626, allocations: 451.2 kB / 1.334 GB, free: 5.223 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3626, allocations: 0 / 1.334 GB, free: 5.223 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.783e-05/0.3627, allocations: 8 kB / 1.334 GB, free: 5.215 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.833e-05/0.3628, allocations: 20.78 kB / 1.334 GB, free: 5.191 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.3628, allocations: 4 kB / 1.334 GB, free: 5.188 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.3639, allocations: 1.426 MB / 1.335 GB, free: 3.617 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3639, allocations: 0 / 1.335 GB, free: 3.617 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002631/0.3642, allocations: 212.2 kB / 1.336 GB, free: 3.391 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.998e-05/0.3643, allocations: 97 kB / 1.336 GB, free: 3.277 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.3643, allocations: 4 kB / 1.336 GB, free: 3.273 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.3644, allocations: 4 kB / 1.336 GB, free: 3.27 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.223e-05/0.3644, allocations: 8.062 kB / 1.336 GB, free: 3.262 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.3644, allocations: 3.984 kB / 1.336 GB, free: 3.258 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001454/0.3646, allocations: 147 kB / 1.336 GB, free: 3.113 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3646, allocations: 0 / 1.336 GB, free: 3.113 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003243/0.3649, allocations: 51.89 kB / 1.336 GB, free: 3.062 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.000584/0.3655, allocations: 0.7526 MB / 1.337 GB, free: 2.277 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003874/0.3659, allocations: 206.5 kB / 1.337 GB, free: 2.062 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3659, allocations: 0 / 1.337 GB, free: 2.062 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.366, allocations: 139.3 kB / 1.337 GB, free: 1.914 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.3664, allocations: 55.41 kB / 1.337 GB, free: 1.863 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/0.3687, allocations: 2.035 MB / 1.339 GB, free: 15.69 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.3691, allocations: 0.7475 MB / 1.34 GB, free: 14.91 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 8.53e-05/0.3692, allocations: 25.53 kB / 1.34 GB, free: 14.89 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.84e-05/0.3693, allocations: 51.36 kB / 1.34 GB, free: 14.84 MB / 1.045 GB Notification: Performance of SimCode: time 3.5e-07/0.3693, allocations: 4 kB / 1.34 GB, free: 14.84 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03189/0.4012, allocations: 3.754 MB / 1.343 GB, free: 11.21 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.8/10.2, allocations: 5.031 kB / 1.343 GB, free: 11.21 MB / 1.045 GB " [Timeout remaining time 290] (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: 16.773361447965726]