Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.001382/0.001382, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001587/0.001587, allocations: 223.6 kB / 23.03 MB, free: 4.945 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.524/1.524, allocations: 230.6 MB / 256.8 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.839/2.839, allocations: 476.8 MB / 0.7715 GB, free: 3.883 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="cs",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.002055/0.002055, allocations: 68.09 kB / 1.118 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3906, allocations: 169.9 MB / 1.284 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003726/0.3943, allocations: 1.758 MB / 1.286 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001793/0.3961, allocations: 0.8221 MB / 1.287 GB, free: 0.793 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.3962, allocations: 7.938 kB / 1.287 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.3964, allocations: 11.86 kB / 1.287 GB, free: 0.7734 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003356/0.3967, allocations: 47.69 kB / 1.287 GB, free: 0.7266 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005687/0.3973, allocations: 165.6 kB / 1.287 GB, free: 0.5664 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003876/0.3977, allocations: 211.6 kB / 1.287 GB, free: 368 kB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.3978, allocations: 33.89 kB / 1.287 GB, free: 332 kB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002673/0.3981, allocations: 87.69 kB / 1.287 GB, free: 244 kB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002217/0.3983, allocations: 79.73 kB / 1.287 GB, free: 164 kB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.008e-05/0.3984, allocations: 16 kB / 1.287 GB, free: 148 kB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.996e-05/0.3985, allocations: 35.98 kB / 1.287 GB, free: 112 kB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.3986, allocations: 39.78 kB / 1.287 GB, free: 72 kB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.3987, allocations: 55.78 kB / 1.287 GB, free: 16 kB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000372/0.399, allocations: 211.3 kB / 1.288 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.399, allocations: 0 / 1.288 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.643e-06/0.399, allocations: 4 kB / 1.288 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.3991, allocations: 0 / 1.288 GB, free: 15.8 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001026/0.4001, allocations: 401.4 kB / 1.288 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.4001, allocations: 12.03 kB / 1.288 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.595e-05/0.4001, allocations: 4.172 kB / 1.288 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.169e-05/0.4002, allocations: 38.75 kB / 1.288 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.896e-05/0.4003, allocations: 16.84 kB / 1.288 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.4006, allocations: 186.9 kB / 1.288 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.4007, allocations: 16.38 kB / 1.288 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.168e-05/0.4007, allocations: 8.375 kB / 1.288 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.4009, allocations: 93.47 kB / 1.288 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.4009, allocations: 0 / 1.288 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.4009, allocations: 4 kB / 1.288 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.221e-05/0.4009, allocations: 12 kB / 1.288 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.4011, allocations: 51.97 kB / 1.288 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000704/0.4018, allocations: 371.7 kB / 1.289 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.402, allocations: 86.58 kB / 1.289 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.079e-05/0.402, allocations: 32.89 kB / 1.289 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.4021, allocations: 0 / 1.289 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/0.4022, allocations: 91.25 kB / 1.289 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.4022, allocations: 0 / 1.289 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.0003372/0.4026, allocations: 133.5 kB / 1.289 GB, free: 14.13 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.4026, allocations: 59.34 kB / 1.289 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002451/0.4029, allocations: 167.4 kB / 1.289 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.4029, allocations: 33.7 kB / 1.289 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.403, allocations: 112 kB / 1.289 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.136e-05/0.403, allocations: 35.73 kB / 1.289 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.184e-05/0.4031, allocations: 41.7 kB / 1.289 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.4033, allocations: 322.8 kB / 1.29 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.4034, allocations: 81.67 kB / 1.29 GB, free: 13.24 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.4036, allocations: 109.7 kB / 1.29 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.4038, allocations: 128.2 kB / 1.29 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4038, allocations: 0 / 1.29 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004085/0.4042, allocations: 240.8 kB / 1.29 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.683e-05/0.4043, allocations: 37.75 kB / 1.29 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.4043, allocations: 4 kB / 1.29 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4043, allocations: 4 kB / 1.29 GB, free: 12.67 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.4045, allocations: 31.86 kB / 1.29 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.4045, allocations: 4 kB / 1.29 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.4047, allocations: 27.92 kB / 1.29 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.4047, allocations: 11.98 kB / 1.29 GB, free: 12.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * 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.0001256/0.4049, allocations: 129.8 kB / 1.291 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.4049, allocations: 11.95 kB / 1.291 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.853e-05/0.4049, allocations: 17.39 kB / 1.291 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.4049, allocations: 3.938 kB / 1.291 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.405, allocations: 0 / 1.291 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.405, allocations: 480 / 1.291 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.4052, allocations: 184.8 kB / 1.291 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4052, allocations: 4 kB / 1.291 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.393e-05/0.4053, allocations: 7.938 kB / 1.291 GB, free: 12.19 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.4053, allocations: 4 kB / 1.291 GB, free: 12.19 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.4053, allocations: 3.938 kB / 1.291 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.4053, allocations: 7.938 kB / 1.291 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4053, allocations: 0 / 1.291 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.4056, allocations: 176.9 kB / 1.291 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.4056, allocations: 31.8 kB / 1.291 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.729e-05/0.4057, allocations: 3.984 kB / 1.291 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.931e-05/0.4058, allocations: 15.94 kB / 1.291 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.464e-05/0.4058, allocations: 7.984 kB / 1.291 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.4058, allocations: 0 / 1.291 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001527/0.406, allocations: 128.9 kB / 1.291 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.406, allocations: 0 / 1.291 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002474/0.4062, allocations: 32 kB / 1.291 GB, free: 11.77 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006442/0.4069, allocations: 0.714 MB / 1.292 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003448/0.4072, allocations: 192.9 kB / 1.292 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4072, allocations: 0 / 1.292 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 7.584e-05/0.4073, allocations: 32.36 kB / 1.292 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.4076, allocations: 34.7 kB / 1.292 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.4102, allocations: 2.045 MB / 1.294 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.693e-05/0.4103, allocations: 98.27 kB / 1.294 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.559e-05/0.4103, allocations: 16.97 kB / 1.294 GB, free: 8.465 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.57e-05/0.4104, allocations: 39.42 kB / 1.294 GB, free: 8.426 MB / 0.9981 GB Notification: Performance of SimCode: time 3e-07/0.4104, allocations: 0 / 1.294 GB, free: 8.426 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0275/0.4379, allocations: 3.969 MB / 1.298 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.59, allocations: 6 kB / 1.298 GB, free: 4.641 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.564117626985535]