Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.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.001439/0.001439, allocations: 110.8 kB / 17.54 MB, free: 4.641 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.001435/0.001435, allocations: 189.9 kB / 20.71 MB, free: 1.484 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.298/1.298, allocations: 225.6 MB / 249.3 MB, free: 3.172 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.493/2.493, allocations: 476.7 MB / 0.7628 GB, free: 15.09 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.RCModel,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 59.91 kB / 1.107 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7329/0.7347, allocations: 168.7 MB / 1.271 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.004745/0.7395, allocations: 4.525 MB / 1.276 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002201/0.7417, allocations: 1.927 MB / 1.278 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.7418, allocations: 12.03 kB / 1.278 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.7432, allocations: 0.6297 MB / 1.278 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004181/0.7436, allocations: 260 kB / 1.279 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004738/0.7441, allocations: 249.5 kB / 1.279 GB, free: 2.723 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005315/0.7446, allocations: 0.6156 MB / 1.279 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004544/0.7451, allocations: 322.4 kB / 1.28 GB, free: 2.297 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.7453, allocations: 253.4 kB / 1.28 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.7457, allocations: 278.6 kB / 1.28 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.773e-05/0.7458, allocations: 37.03 kB / 1.28 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004029/0.7462, allocations: 261.3 kB / 1.28 GB, free: 1.996 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.7463, allocations: 153.6 kB / 1.281 GB, free: 1.93 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.7465, allocations: 223.4 kB / 1.281 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006416/0.7472, allocations: 0.6125 MB / 1.281 GB, free: 1.582 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.7472, allocations: 3.156 kB / 1.281 GB, free: 1.582 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.293e-06/0.7472, allocations: 0 / 1.281 GB, free: 1.582 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.7472, allocations: 0 / 1.281 GB, free: 1.582 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.0009645/0.7481, allocations: 0.7369 MB / 1.282 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.7482, allocations: 8.188 kB / 1.282 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.397e-05/0.7482, allocations: 77.06 kB / 1.282 GB, free: 0.9453 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008648/0.7491, allocations: 148.8 kB / 1.282 GB, free: 0.918 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003367/0.7494, allocations: 349.3 kB / 1.283 GB, free: 0.625 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.7495, allocations: 28.31 kB / 1.283 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.528e-05/0.7495, allocations: 29.81 kB / 1.283 GB, free: 0.6055 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006241/0.7501, allocations: 0.5344 MB / 1.283 GB, free: 332 kB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.7501, allocations: 4.469 kB / 1.283 GB, free: 328 kB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.7502, allocations: 16.88 kB / 1.283 GB, free: 316 kB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.016e-05/0.7502, allocations: 29.67 kB / 1.283 GB, free: 316 kB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004956/0.7507, allocations: 385.1 kB / 1.284 GB, free: 184 kB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.7531, allocations: 2.407 MB / 1.286 GB, free: 14.12 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004622/0.7535, allocations: 245.5 kB / 1.286 GB, free: 14.01 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.7537, allocations: 99.38 kB / 1.286 GB, free: 13.97 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.7537, allocations: 3.125 kB / 1.286 GB, free: 13.97 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.7537, allocations: 34.56 kB / 1.286 GB, free: 13.93 MB / 1.014 GB Notification: Performance of pre-optimization done (n=20): time 2.865e-06/0.7537, allocations: 7.984 kB / 1.286 GB, free: 13.92 MB / 1.014 GB Notification: Performance of matching and sorting (n=23): time 0.002015/0.7557, allocations: 1.124 MB / 1.288 GB, free: 13.17 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.7558, allocations: 54.34 kB / 1.288 GB, free: 13.11 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.7561, allocations: 301.8 kB / 1.288 GB, free: 12.94 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.7561, allocations: 31.67 kB / 1.288 GB, free: 12.9 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.7562, allocations: 239.9 kB / 1.288 GB, free: 12.7 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 6.623e-05/0.7563, allocations: 86.75 kB / 1.288 GB, free: 12.64 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.462e-05/0.7564, allocations: 62.19 kB / 1.288 GB, free: 12.59 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.7565, allocations: 337.3 kB / 1.289 GB, free: 12.27 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.7567, allocations: 103.8 kB / 1.289 GB, free: 12.23 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.7569, allocations: 196.3 kB / 1.289 GB, free: 12.09 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003805/0.7573, allocations: 313.1 kB / 1.289 GB, free: 11.89 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.7573, allocations: 4 kB / 1.289 GB, free: 11.88 MB / 1.014 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007054/0.758, allocations: 436.8 kB / 1.29 GB, free: 11.68 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.758, allocations: 10.91 kB / 1.29 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.84e-06/0.758, allocations: 3.344 kB / 1.29 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003281/0.7583, allocations: 94.58 kB / 1.29 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/0.7586, allocations: 66.83 kB / 1.29 GB, free: 11.63 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003215/0.7618, allocations: 4.399 MB / 1.294 GB, free: 7.293 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.762, allocations: 8.469 kB / 1.294 GB, free: 7.289 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.762, allocations: 13.41 kB / 1.294 GB, free: 7.285 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001785/0.7622, allocations: 177 kB / 1.294 GB, free: 7.141 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/0.7623, allocations: 35.84 kB / 1.294 GB, free: 7.121 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.42e-05/0.7623, allocations: 36.48 kB / 1.294 GB, free: 7.094 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.7623, allocations: 8.547 kB / 1.294 GB, free: 7.09 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.7623, allocations: 1.375 kB / 1.294 GB, free: 7.09 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.7624, allocations: 5.391 kB / 1.294 GB, free: 7.086 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.7628, allocations: 407.4 kB / 1.295 GB, free: 6.809 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.7628, allocations: 4.594 kB / 1.295 GB, free: 6.805 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.763, allocations: 30.02 kB / 1.295 GB, free: 6.805 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002881/0.7633, allocations: 98.88 kB / 1.295 GB, free: 6.758 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.7633, allocations: 5.906 kB / 1.295 GB, free: 6.754 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003125/0.7664, allocations: 4.385 MB / 1.299 GB, free: 2.43 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.7664, allocations: 4.594 kB / 1.299 GB, free: 2.426 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007333/0.7671, allocations: 0.5541 MB / 1.3 GB, free: 2.109 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.7673, allocations: 125.3 kB / 1.3 GB, free: 1.992 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.7673, allocations: 7.125 kB / 1.3 GB, free: 1.988 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.7675, allocations: 5.641 kB / 1.3 GB, free: 1.988 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.7675, allocations: 24.61 kB / 1.3 GB, free: 1.98 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.7676, allocations: 3.625 kB / 1.3 GB, free: 1.98 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001987/0.7678, allocations: 221.2 kB / 1.3 GB, free: 1.852 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.7678, allocations: 0 / 1.3 GB, free: 1.852 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003966/0.7682, allocations: 94.86 kB / 1.3 GB, free: 1.844 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001032/0.7692, allocations: 1.103 MB / 1.301 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0007575/0.7699, allocations: 0.586 MB / 1.302 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7699, allocations: 0 / 1.302 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004788/0.7704, allocations: 466.9 kB / 1.302 GB, free: 196 kB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.7709, allocations: 79.03 kB / 1.302 GB, free: 168 kB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.775, allocations: 3.394 MB / 1.306 GB, free: 13.94 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.7755, allocations: 0.8297 MB / 1.306 GB, free: 13.22 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001743/0.7756, allocations: 63.88 kB / 1.306 GB, free: 13.21 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.7758, allocations: 108.2 kB / 1.307 GB, free: 13.12 MB / 1.029 GB Notification: Performance of SimCode: time 4.81e-07/0.7758, allocations: 0 / 1.307 GB, free: 13.12 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04257/0.8184, allocations: 7.862 MB / 1.314 GB, free: 12.29 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.058/9.876, allocations: 4.906 kB / 1.314 GB, free: 12.29 MB / 1.029 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Buildings_11_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sen_ss.I in file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv. Warning: Get data of variable sen_ss.I from file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv failed! Error: Could not read variable sen_dyn.I in file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv. Warning: Get data of variable sen_dyn.I from file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv failed! Error: Could not read variable RC_ss.Vc in file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv. Warning: Get data of variable RC_ss.Vc from file Buildings_11_Buildings.Electrical.DC.Lines.Examples.RCModel_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.275972779993026]