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.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.001381/0.001381, 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.001394/0.001394, 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.284/1.284, allocations: 225.6 MB / 249.3 MB, free: 3.332 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.479/2.479, allocations: 476.7 MB / 0.7628 GB, free: 15.28 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.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: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 67.88 kB / 1.107 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7837/0.7855, allocations: 168.7 MB / 1.271 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002466/0.7879, allocations: 1.799 MB / 1.273 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001119/0.789, allocations: 0.8413 MB / 1.274 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.911e-05/0.7891, allocations: 2.062 kB / 1.274 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.7892, allocations: 20.77 kB / 1.274 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.7894, allocations: 43.05 kB / 1.274 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003824/0.7898, allocations: 166.8 kB / 1.274 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.7901, allocations: 210.4 kB / 1.274 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.432e-05/0.7901, allocations: 36.36 kB / 1.274 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.7903, allocations: 75.05 kB / 1.274 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.7904, allocations: 82.86 kB / 1.275 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.854e-05/0.7904, allocations: 17.47 kB / 1.275 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.507e-05/0.7905, allocations: 34.84 kB / 1.275 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.205e-05/0.7906, allocations: 32.38 kB / 1.275 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.97e-05/0.7907, allocations: 78.2 kB / 1.275 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.7909, allocations: 207.5 kB / 1.275 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.7909, allocations: 1 kB / 1.275 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.443e-06/0.7909, allocations: 0 / 1.275 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.7909, allocations: 0 / 1.275 GB, free: 5.422 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.0006257/0.7915, allocations: 479.9 kB / 1.275 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.7916, allocations: 10.56 kB / 1.275 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.572e-05/0.7916, allocations: 37.84 kB / 1.275 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.7916, allocations: 18.7 kB / 1.275 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.7919, allocations: 244 kB / 1.276 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.7919, allocations: 5.984 kB / 1.276 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.7919, allocations: 12.84 kB / 1.276 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.7921, allocations: 87.25 kB / 1.276 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.7921, allocations: 0 / 1.276 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.7921, allocations: 2.422 kB / 1.276 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.7921, allocations: 4.125 kB / 1.276 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.7922, allocations: 60.58 kB / 1.276 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.7927, allocations: 445.3 kB / 1.276 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001437/0.7929, allocations: 80.39 kB / 1.276 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.767e-05/0.7929, allocations: 30.7 kB / 1.276 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.7929, allocations: 1 kB / 1.276 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001205/0.7931, allocations: 97.5 kB / 1.276 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.7931, allocations: 1.125 kB / 1.276 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.0002556/0.7933, allocations: 133.1 kB / 1.277 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.197e-05/0.7933, allocations: 56.88 kB / 1.277 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.7935, allocations: 176.8 kB / 1.277 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.7935, allocations: 32.17 kB / 1.277 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.854e-05/0.7936, allocations: 107.4 kB / 1.277 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.7936, allocations: 34.67 kB / 1.277 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.96e-05/0.7937, allocations: 44.17 kB / 1.277 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.221e-05/0.7937, allocations: 323.3 kB / 1.277 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.7938, allocations: 52.02 kB / 1.277 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.7939, allocations: 84.83 kB / 1.277 GB, free: 3.277 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.7941, allocations: 129.9 kB / 1.278 GB, free: 3.184 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.7941, allocations: 0.625 kB / 1.278 GB, free: 3.184 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003051/0.7944, allocations: 211 kB / 1.278 GB, free: 3.066 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.7944, allocations: 36.95 kB / 1.278 GB, free: 3.031 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.7944, allocations: 4.859 kB / 1.278 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.7944, allocations: 1.656 kB / 1.278 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.7945, allocations: 23.03 kB / 1.278 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.7946, allocations: 11.5 kB / 1.278 GB, free: 3.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/0.7948, allocations: 35.08 kB / 1.278 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.7948, allocations: 11.39 kB / 1.278 GB, free: 3.008 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 7.088e-05/0.7949, allocations: 125.4 kB / 1.278 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.129e-05/0.7949, allocations: 14 kB / 1.278 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.336e-05/0.7949, allocations: 19.67 kB / 1.278 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.7949, allocations: 1.094 kB / 1.278 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.7949, allocations: 3.938 kB / 1.278 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.7949, allocations: 0 / 1.278 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.7951, allocations: 233 kB / 1.278 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.7951, allocations: 0.9375 kB / 1.278 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.042e-05/0.7951, allocations: 8.828 kB / 1.278 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.7951, allocations: 0.7188 kB / 1.278 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.7952, allocations: 6.812 kB / 1.278 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.7952, allocations: 0.875 kB / 1.278 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.7952, allocations: 8.625 kB / 1.278 GB, free: 2.621 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002106/0.7954, allocations: 176 kB / 1.278 GB, free: 2.504 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.342e-05/0.7954, allocations: 106.2 kB / 1.279 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.7954, allocations: 5.844 kB / 1.279 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.345e-05/0.7955, allocations: 3.953 kB / 1.279 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.897e-05/0.7955, allocations: 9.688 kB / 1.279 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.7955, allocations: 3.062 kB / 1.279 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000111/0.7957, allocations: 128.7 kB / 1.279 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.7957, allocations: 0 / 1.279 GB, free: 2.293 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002257/0.7959, allocations: 35.88 kB / 1.279 GB, free: 2.285 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.0003554/0.7962, allocations: 0.7095 MB / 1.279 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002331/0.7965, allocations: 161.3 kB / 1.28 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.7965, allocations: 0 / 1.28 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 6.223e-05/0.7965, allocations: 35.83 kB / 1.28 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.7968, allocations: 45.45 kB / 1.28 GB, free: 1.508 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.7986, allocations: 1.896 MB / 1.282 GB, free: 16.05 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.7989, allocations: 0.7174 MB / 1.282 GB, free: 15.35 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 5.761e-05/0.799, allocations: 14.39 kB / 1.282 GB, free: 15.35 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.739e-05/0.799, allocations: 37.95 kB / 1.282 GB, free: 15.32 MB / 1.014 GB Notification: Performance of SimCode: time 4.41e-07/0.799, allocations: 0 / 1.282 GB, free: 15.32 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02663/0.8257, allocations: 3.64 MB / 1.286 GB, free: 14.8 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.137/7.963, allocations: 0 / 1.286 GB, free: 14.8 MB / 1.014 GB " [Timeout remaining time 292] (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 --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: 13.200256124000589]