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.00178/0.00178, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002396/0.002396, allocations: 209.4 kB / 22.24 MB, free: 5.242 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 MB, free: 7.797 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.927/2.927, allocations: 476 MB / 0.7699 GB, free: 4.738 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",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.002407/0.002407, allocations: 67.03 kB / 1.117 GB, free: 41.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3676/0.37, allocations: 170 MB / 1.283 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003591/0.3736, allocations: 1.768 MB / 1.284 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001797/0.3753, allocations: 0.826 MB / 1.285 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.3755, allocations: 0 / 1.285 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.3756, allocations: 19.8 kB / 1.285 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002933/0.3759, allocations: 31.73 kB / 1.285 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005492/0.3765, allocations: 172.9 kB / 1.285 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003279/0.3768, allocations: 211.5 kB / 1.285 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.3769, allocations: 29.62 kB / 1.286 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.3771, allocations: 83.75 kB / 1.286 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.3773, allocations: 79.64 kB / 1.286 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.197e-05/0.3774, allocations: 16 kB / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.862e-05/0.3774, allocations: 32 kB / 1.286 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.083e-05/0.3775, allocations: 31.91 kB / 1.286 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.3776, allocations: 75.64 kB / 1.286 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003116/0.3779, allocations: 197 kB / 1.286 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3779, allocations: 0 / 1.286 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3779, allocations: 4 kB / 1.286 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.378, allocations: 0 / 1.286 GB, free: 8.977 MB / 0.9825 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.0008973/0.3789, allocations: 399.4 kB / 1.286 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3789, allocations: 8.031 kB / 1.286 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.536e-05/0.3789, allocations: 38.73 kB / 1.286 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.207e-05/0.379, allocations: 20.84 kB / 1.286 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003689/0.3794, allocations: 190.9 kB / 1.287 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.3794, allocations: 8.375 kB / 1.287 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.001e-05/0.3794, allocations: 8.375 kB / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001931/0.3796, allocations: 89.78 kB / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3796, allocations: 0 / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.3797, allocations: 0 / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/0.3797, allocations: 7.938 kB / 1.287 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.3798, allocations: 59.91 kB / 1.287 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007118/0.3805, allocations: 379.7 kB / 1.287 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.3807, allocations: 82.56 kB / 1.287 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.238e-05/0.3808, allocations: 32.84 kB / 1.287 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.3808, allocations: 4 kB / 1.287 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000165/0.381, allocations: 83.31 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.381, allocations: 3.938 kB / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003375/0.3813, allocations: 133.5 kB / 1.287 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.3814, allocations: 55.34 kB / 1.288 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/0.3816, allocations: 180 kB / 1.288 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.3816, allocations: 33.7 kB / 1.288 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.399e-05/0.3817, allocations: 112.2 kB / 1.288 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.803e-05/0.3818, allocations: 31.94 kB / 1.288 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/0.3819, allocations: 45.7 kB / 1.288 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.382, allocations: 318.8 kB / 1.288 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.3822, allocations: 81.67 kB / 1.288 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.3823, allocations: 112.2 kB / 1.288 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002025/0.3825, allocations: 128.2 kB / 1.289 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3825, allocations: 0 / 1.289 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004111/0.3829, allocations: 248.9 kB / 1.289 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.286e-05/0.383, allocations: 33.7 kB / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.383, allocations: 0 / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.383, allocations: 0 / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.3832, allocations: 31.97 kB / 1.289 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.3832, allocations: 3.938 kB / 1.289 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.3834, allocations: 35.86 kB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.3834, allocations: 16 kB / 1.289 GB, free: 5.766 MB / 0.9825 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.0001262/0.3836, allocations: 129.8 kB / 1.289 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.3836, allocations: 7.953 kB / 1.289 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.803e-05/0.3836, allocations: 13.41 kB / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3836, allocations: 4 kB / 1.289 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.3836, allocations: 3.938 kB / 1.289 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.3836, allocations: 3.984 kB / 1.289 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.3838, allocations: 176.7 kB / 1.289 GB, free: 5.379 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3838, allocations: 3.938 kB / 1.289 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.847e-05/0.3839, allocations: 11.98 kB / 1.289 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3839, allocations: 4 kB / 1.289 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.3839, allocations: 4.469 kB / 1.289 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3839, allocations: 0 / 1.289 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.3839, allocations: 7.938 kB / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003038/0.3842, allocations: 176.9 kB / 1.289 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.681e-05/0.3843, allocations: 23.86 kB / 1.289 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.841e-05/0.3844, allocations: 7.938 kB / 1.289 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.206e-05/0.3844, allocations: 7.984 kB / 1.289 GB, free: 5.117 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.199e-05/0.3845, allocations: 11.92 kB / 1.289 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.3845, allocations: 4 kB / 1.289 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001544/0.3846, allocations: 132 kB / 1.29 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3846, allocations: 0 / 1.29 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002509/0.3849, allocations: 28 kB / 1.29 GB, free: 4.945 MB / 0.9825 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.0006718/0.3856, allocations: 0.71 MB / 1.29 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003479/0.3859, allocations: 181 kB / 1.29 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3859, allocations: 0 / 1.29 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.287e-05/0.386, allocations: 39.91 kB / 1.291 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/0.3863, allocations: 42.22 kB / 1.291 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002753/0.3891, allocations: 2.044 MB / 1.293 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.3892, allocations: 98.27 kB / 1.293 GB, free: 1.652 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.561e-05/0.3893, allocations: 24.95 kB / 1.293 GB, free: 1.629 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.915e-05/0.3894, allocations: 39.42 kB / 1.293 GB, free: 1.59 MB / 0.9825 GB Notification: Performance of SimCode: time 8.31e-07/0.3894, allocations: 0 / 1.293 GB, free: 1.59 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03531/0.4247, allocations: 4.321 MB / 1.297 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.08, allocations: 18.72 kB / 1.297 GB, free: 13.43 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.070185501128435]