Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.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.001898/0.001898, allocations: 110.2 kB / 16.46 MB, free: 6.508 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.002426/0.002426, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.512/1.512, allocations: 230.6 MB / 252.8 MB, free: 9.125 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.135/3.135, allocations: 0.49 GB / 0.7916 GB, free: 33.42 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.Controls.OBC.CDL.Reals.Validation.Modulo,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Modulo",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.001991/0.001991, allocations: 70.61 kB / 1.149 GB, free: 26.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3827/0.3847, allocations: 176.1 MB / 1.321 GB, free: 3.281 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.002318/0.387, allocations: 0.7005 MB / 1.322 GB, free: 2.586 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3883, allocations: 0.902 MB / 1.322 GB, free: 1.672 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.042e-05/0.3883, allocations: 3.938 kB / 1.322 GB, free: 1.668 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.164e-05/0.3884, allocations: 7.984 kB / 1.322 GB, free: 1.66 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.808e-05/0.3885, allocations: 7.875 kB / 1.322 GB, free: 1.652 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001926/0.3886, allocations: 19.98 kB / 1.322 GB, free: 1.633 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001147/0.3888, allocations: 39.91 kB / 1.323 GB, free: 1.594 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.3889, allocations: 8 kB / 1.323 GB, free: 1.586 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.465e-05/0.3889, allocations: 23.86 kB / 1.323 GB, free: 1.562 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.489e-05/0.389, allocations: 23.91 kB / 1.323 GB, free: 1.539 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.389, allocations: 4 kB / 1.323 GB, free: 1.535 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.176e-05/0.389, allocations: 8 kB / 1.323 GB, free: 1.527 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.977e-05/0.389, allocations: 7.984 kB / 1.323 GB, free: 1.52 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.861e-05/0.3891, allocations: 15.88 kB / 1.323 GB, free: 1.504 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.3892, allocations: 40.09 kB / 1.323 GB, free: 1.465 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.3892, allocations: 4 kB / 1.323 GB, free: 1.461 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.938e-06/0.3892, allocations: 3.984 kB / 1.323 GB, free: 1.457 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.3892, allocations: 0 / 1.323 GB, free: 1.457 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006191/0.3898, allocations: 359.3 kB / 1.323 GB, free: 1.055 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.3899, allocations: 15.98 kB / 1.323 GB, free: 1.039 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.619e-05/0.3899, allocations: 34.75 kB / 1.323 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.585e-05/0.3899, allocations: 4.875 kB / 1.323 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.3901, allocations: 180.2 kB / 1.323 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.3901, allocations: 4.375 kB / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.3901, allocations: 384 / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.3904, allocations: 74.16 kB / 1.323 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.3904, allocations: 3.938 kB / 1.323 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.3904, allocations: 4 kB / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.3905, allocations: 0 / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.3908, allocations: 63.92 kB / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004381/0.3912, allocations: 264.8 kB / 1.324 GB, free: 324 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.3914, allocations: 62.48 kB / 1.324 GB, free: 252 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.3916, allocations: 36.91 kB / 1.324 GB, free: 212 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.3916, allocations: 4 kB / 1.324 GB, free: 208 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.3917, allocations: 30.56 kB / 1.324 GB, free: 168 kB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3917, allocations: 0 / 1.324 GB, free: 168 kB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.0006036/0.3923, allocations: 133.5 kB / 1.324 GB, free: 28 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.697e-05/0.3923, allocations: 51.41 kB / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.3925, allocations: 117.8 kB / 1.324 GB, free: 15.84 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.3925, allocations: 25.7 kB / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.757e-05/0.3925, allocations: 84.14 kB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.3926, allocations: 15.84 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/0.3926, allocations: 13.72 kB / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.3928, allocations: 322.8 kB / 1.324 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.3929, allocations: 27.97 kB / 1.324 GB, free: 15.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.3931, allocations: 31.95 kB / 1.325 GB, free: 15.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.3934, allocations: 76.72 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3934, allocations: 0 / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003402/0.3937, allocations: 93.95 kB / 1.325 GB, free: 15.13 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.3937, allocations: 4 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3937, allocations: 4 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.3937, allocations: 4 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.3939, allocations: 15.92 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.3939, allocations: 0 / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.794e-05/0.394, allocations: 15.97 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.394, allocations: 0 / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001987/0.3942, allocations: 117.8 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.546e-05/0.3942, allocations: 7.938 kB / 1.325 GB, free: 14.95 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.604e-05/0.3943, allocations: 15.91 kB / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3943, allocations: 0 / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3943, allocations: 0 / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.3943, allocations: 0 / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.3945, allocations: 177.5 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.3945, allocations: 3.938 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.3946, allocations: 15.98 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3946, allocations: 0 / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.3946, allocations: 3.938 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3946, allocations: 4 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3946, allocations: 0 / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004635/0.3951, allocations: 199.3 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.972e-05/0.3951, allocations: 85.06 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.3951, allocations: 0 / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.3952, allocations: 15.98 kB / 1.325 GB, free: 14.35 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.3953, allocations: 7.984 kB / 1.325 GB, free: 14.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-06/0.3953, allocations: 0 / 1.325 GB, free: 14.34 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.729e-05/0.3954, allocations: 87.28 kB / 1.325 GB, free: 14.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3954, allocations: 0 / 1.325 GB, free: 14.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002239/0.3956, allocations: 8 kB / 1.325 GB, free: 14.25 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007725/0.3964, allocations: 0.728 MB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003461/0.3967, allocations: 67.86 kB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3967, allocations: 4 kB / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001667/0.3969, allocations: 39.95 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.3972, allocations: 2.188 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004713/0.3976, allocations: 155.1 kB / 1.326 GB, free: 13.19 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.398, allocations: 0.6807 MB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.606e-05/0.398, allocations: 4 kB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.976e-05/0.3981, allocations: 15.44 kB / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of SimCode: time 2.61e-07/0.3981, allocations: 0 / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.425, allocations: 1.693 MB / 1.329 GB, free: 10.86 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.237/8.662, allocations: 6.328 kB / 1.329 GB, free: 10.86 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_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_Controls_OBC_CDL_Reals_Validation_Modulo.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable mod1.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.csv. Warning: Get data of variable mod1.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.csv failed! Error: Could not read variable mod1.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.csv. Warning: Get data of variable mod1.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.524210931966081]