Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001294/0.001294, allocations: 106 kB / 16.45 MB, free: 6.508 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.001279/0.001279, allocations: 196.6 kB / 19.41 MB, free: 3.676 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.437/1.437, allocations: 225.6 MB / 247.8 MB, free: 13.98 MB / 206.1 MB " [Timeout remaining time 178] 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.837/2.837, allocations: 476.7 MB / 0.7611 GB, free: 11.34 MB / 0.6231 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.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 67.89 kB / 1.104 GB, free: 9.301 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8318/0.8337, allocations: 168.7 MB / 1.269 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002046/0.8358, allocations: 0.6938 MB / 1.269 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001528/0.8373, allocations: 1.065 MB / 1.27 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.17e-05/0.8374, allocations: 7.875 kB / 1.27 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.821e-05/0.8374, allocations: 7.922 kB / 1.27 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.578e-05/0.8375, allocations: 11.92 kB / 1.27 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.838, allocations: 39.84 kB / 1.271 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.8381, allocations: 79.81 kB / 1.271 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.8383, allocations: 8 kB / 1.271 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.8384, allocations: 27.92 kB / 1.271 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.8385, allocations: 35.83 kB / 1.271 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.8385, allocations: 8 kB / 1.271 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.952e-05/0.8386, allocations: 19.98 kB / 1.271 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.791e-05/0.8387, allocations: 7.984 kB / 1.271 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.349e-05/0.8387, allocations: 31.86 kB / 1.271 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.839, allocations: 77.52 kB / 1.271 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.839, allocations: 0 / 1.271 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.535e-06/0.839, allocations: 4 kB / 1.271 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.262e-05/0.839, allocations: 0 / 1.271 GB, free: 3.082 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0008455/0.8398, allocations: 379.2 kB / 1.271 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.8399, allocations: 16.02 kB / 1.271 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.292e-05/0.84, allocations: 38.69 kB / 1.271 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.677e-05/0.84, allocations: 8.891 kB / 1.271 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.8402, allocations: 172.3 kB / 1.271 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.8402, allocations: 8.359 kB / 1.271 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.389e-05/0.8402, allocations: 12.38 kB / 1.271 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.8405, allocations: 74.22 kB / 1.271 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.8405, allocations: 3.938 kB / 1.271 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.8405, allocations: 3.984 kB / 1.271 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.8405, allocations: 4 kB / 1.271 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.8407, allocations: 55.89 kB / 1.272 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005899/0.8413, allocations: 312.7 kB / 1.272 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.8415, allocations: 74.53 kB / 1.272 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.8416, allocations: 38.38 kB / 1.272 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/0.8417, allocations: 4 kB / 1.272 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003025/0.842, allocations: 95.48 kB / 1.272 GB, free: 1.633 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.944e-06/0.842, allocations: 0 / 1.272 GB, free: 1.633 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.00055/0.8425, allocations: 173.5 kB / 1.272 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.8426, allocations: 59.39 kB / 1.272 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.8427, allocations: 105.8 kB / 1.272 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.8427, allocations: 33.7 kB / 1.272 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.8428, allocations: 88.38 kB / 1.272 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.452e-05/0.8429, allocations: 35.72 kB / 1.273 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.297e-05/0.8429, allocations: 25.72 kB / 1.273 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001924/0.8431, allocations: 326.8 kB / 1.273 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.8432, allocations: 35.97 kB / 1.273 GB, free: 0.7109 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.8434, allocations: 62.55 kB / 1.273 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.8436, allocations: 102.4 kB / 1.273 GB, free: 0.5312 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.8436, allocations: 0 / 1.273 GB, free: 0.5312 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003304/0.844, allocations: 145.7 kB / 1.273 GB, free: 392 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.844, allocations: 9.562 kB / 1.273 GB, free: 384 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.844, allocations: 0 / 1.273 GB, free: 384 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.844, allocations: 0 / 1.273 GB, free: 384 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.8442, allocations: 23.92 kB / 1.273 GB, free: 360 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.8442, allocations: 0 / 1.273 GB, free: 360 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.745e-05/0.8443, allocations: 19.88 kB / 1.273 GB, free: 340 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.8443, allocations: 8.25 kB / 1.273 GB, free: 332 kB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001126/0.8444, allocations: 130.3 kB / 1.273 GB, free: 192 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.8444, allocations: 11.94 kB / 1.273 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003539/0.8448, allocations: 141.9 kB / 1.274 GB, free: 24 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.8448, allocations: 8 kB / 1.274 GB, free: 16 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.8448, allocations: 0 / 1.274 GB, free: 16 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.8448, allocations: 0 / 1.274 GB, free: 16 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006116/0.8454, allocations: 406.9 kB / 1.274 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.8454, allocations: 4.031 kB / 1.274 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.8455, allocations: 15.92 kB / 1.274 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.8455, allocations: 0 / 1.274 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.8455, allocations: 4 kB / 1.274 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.8455, allocations: 0 / 1.274 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.8455, allocations: 0 / 1.274 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.8459, allocations: 243.3 kB / 1.274 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.927e-05/0.8459, allocations: 85.06 kB / 1.274 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.846, allocations: 0 / 1.274 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.8461, allocations: 19.92 kB / 1.274 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.213e-05/0.8461, allocations: 7.922 kB / 1.274 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.8461, allocations: 4 kB / 1.274 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.486e-05/0.8462, allocations: 83.28 kB / 1.274 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.8462, allocations: 0 / 1.274 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002658/0.8465, allocations: 27.92 kB / 1.274 GB, free: 15.04 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0008208/0.8473, allocations: 0.7749 MB / 1.275 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003246/0.8476, allocations: 95.88 kB / 1.275 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.8476, allocations: 0 / 1.275 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.8477, allocations: 43.91 kB / 1.275 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.848, allocations: 16.25 kB / 1.275 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.85, allocations: 1.508 MB / 1.277 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.8503, allocations: 0.6851 MB / 1.277 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.245e-05/0.8503, allocations: 8.422 kB / 1.277 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.178e-05/0.8504, allocations: 23.44 kB / 1.277 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of SimCode: time 5.71e-07/0.8504, allocations: 4 kB / 1.277 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.8755, allocations: 2.075 MB / 1.279 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.964, allocations: 17.91 kB / 1.28 GB, free: 9.781 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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: 15.00986211001873]