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.001614/0.001614, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001503/0.001503, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.57/1.57, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.908/2.908, allocations: 476.7 MB / 0.7678 GB, free: 9.332 MB / 0.6075 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.002037/0.002037, allocations: 67.89 kB / 1.113 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.247/1.249, allocations: 169.9 MB / 1.279 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.004297/1.253, allocations: 1.803 MB / 1.281 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001892/1.255, allocations: 0.8848 MB / 1.282 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/1.255, allocations: 10.94 kB / 1.282 GB, free: 9.84 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001557/1.255, allocations: 10.55 kB / 1.282 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002852/1.255, allocations: 44.19 kB / 1.282 GB, free: 9.801 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005412/1.256, allocations: 158.6 kB / 1.282 GB, free: 9.719 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004059/1.256, allocations: 212.2 kB / 1.282 GB, free: 9.621 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/1.256, allocations: 24.55 kB / 1.282 GB, free: 9.605 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/1.257, allocations: 87.88 kB / 1.282 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/1.257, allocations: 84.91 kB / 1.282 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.866e-05/1.257, allocations: 17.06 kB / 1.282 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/1.257, allocations: 39.45 kB / 1.282 GB, free: 9.516 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.749e-05/1.257, allocations: 29.61 kB / 1.282 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001493/1.257, allocations: 77.67 kB / 1.282 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004279/1.258, allocations: 203.8 kB / 1.282 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/1.258, allocations: 0.5625 kB / 1.282 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.324e-06/1.258, allocations: 1.156 kB / 1.282 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.502e-05/1.258, allocations: 0 / 1.282 GB, free: 9.371 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.001091/1.259, allocations: 482.6 kB / 1.283 GB, free: 8.918 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/1.259, allocations: 13.25 kB / 1.283 GB, free: 8.914 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.588e-05/1.259, allocations: 2.469 kB / 1.283 GB, free: 8.914 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.591e-05/1.259, allocations: 38.5 kB / 1.283 GB, free: 8.871 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.015e-05/1.259, allocations: 18.59 kB / 1.283 GB, free: 8.863 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004323/1.259, allocations: 239 kB / 1.283 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/1.26, allocations: 9.328 kB / 1.283 GB, free: 8.629 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/1.26, allocations: 13.25 kB / 1.283 GB, free: 8.625 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/1.26, allocations: 95.78 kB / 1.283 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/1.26, allocations: 4 kB / 1.283 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/1.26, allocations: 1.281 kB / 1.283 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.935e-05/1.26, allocations: 4.609 kB / 1.283 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/1.26, allocations: 58.06 kB / 1.283 GB, free: 8.539 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007866/1.261, allocations: 439.7 kB / 1.284 GB, free: 8.195 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/1.261, allocations: 80.47 kB / 1.284 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.8e-05/1.261, allocations: 30.3 kB / 1.284 GB, free: 8.129 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/1.261, allocations: 6.406 kB / 1.284 GB, free: 8.125 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001673/1.261, allocations: 84.88 kB / 1.284 GB, free: 8.062 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/1.261, allocations: 0 / 1.284 GB, free: 8.062 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.000354/1.262, allocations: 134.4 kB / 1.284 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/1.262, allocations: 61.11 kB / 1.284 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/1.262, allocations: 179.3 kB / 1.284 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/1.262, allocations: 28.33 kB / 1.284 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/1.262, allocations: 115.2 kB / 1.285 GB, free: 7.652 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.092e-05/1.262, allocations: 30.06 kB / 1.285 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.221e-05/1.262, allocations: 40.61 kB / 1.285 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000189/1.262, allocations: 322.2 kB / 1.285 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/1.263, allocations: 54.2 kB / 1.285 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/1.263, allocations: 80.42 kB / 1.285 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/1.263, allocations: 122.1 kB / 1.285 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.263, allocations: 0.9844 kB / 1.285 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003931/1.263, allocations: 208.8 kB / 1.285 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.677e-05/1.263, allocations: 43.72 kB / 1.285 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/1.263, allocations: 0 / 1.285 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/1.263, allocations: 5.438 kB / 1.285 GB, free: 6.973 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/1.264, allocations: 31.81 kB / 1.285 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/1.264, allocations: 1.156 kB / 1.285 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/1.264, allocations: 40.12 kB / 1.285 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.95e-05/1.264, allocations: 11.11 kB / 1.285 GB, free: 6.949 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.0001349/1.264, allocations: 126.6 kB / 1.286 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/1.264, allocations: 17.61 kB / 1.286 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.054e-05/1.264, allocations: 17.52 kB / 1.286 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/1.264, allocations: 9.188 kB / 1.286 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/1.264, allocations: 1.75 kB / 1.286 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/1.264, allocations: 0 / 1.286 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/1.264, allocations: 224.5 kB / 1.286 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/1.264, allocations: 0 / 1.286 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.366e-05/1.264, allocations: 13.38 kB / 1.286 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/1.264, allocations: 1.438 kB / 1.286 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/1.264, allocations: 2.484 kB / 1.286 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/1.264, allocations: 8.938 kB / 1.286 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/1.264, allocations: 0 / 1.286 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003374/1.265, allocations: 171.8 kB / 1.286 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.506e-05/1.265, allocations: 97.55 kB / 1.286 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/1.265, allocations: 7.375 kB / 1.286 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.519e-05/1.265, allocations: 7.562 kB / 1.286 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/1.265, allocations: 6.453 kB / 1.286 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/1.265, allocations: 3 kB / 1.286 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001736/1.265, allocations: 133.1 kB / 1.286 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/1.265, allocations: 0 / 1.286 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002546/1.265, allocations: 36.41 kB / 1.286 GB, free: 6.234 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.0007271/1.266, allocations: 0.7085 MB / 1.287 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003447/1.267, allocations: 161.8 kB / 1.287 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.267, allocations: 0 / 1.287 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 8.302e-05/1.267, allocations: 33.5 kB / 1.287 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/1.267, allocations: 36.53 kB / 1.287 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003142/1.27, allocations: 1.925 MB / 1.289 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004919/1.271, allocations: 0.7091 MB / 1.29 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.593e-05/1.271, allocations: 15.56 kB / 1.29 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.798e-05/1.271, allocations: 42.06 kB / 1.29 GB, free: 3.262 MB / 0.9981 GB Notification: Performance of SimCode: time 2.9e-07/1.271, allocations: 0 / 1.29 GB, free: 3.262 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02559/1.296, allocations: 3.698 MB / 1.293 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.091/10.39, allocations: 10.23 kB / 1.293 GB, free: 2.727 MB / 0.9981 GB " [Timeout remaining time 289] (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: 17.054279219009914]