Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001744/0.001744, allocations: 84.36 kB / 19.76 MB, free: 2.023 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.002067/0.002067, allocations: 156.9 kB / 23.01 MB, free: 4.961 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.456/1.456, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.862/2.862, allocations: 377.9 MB / 0.6228 GB, free: 12.54 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [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.002012/0.002012, allocations: 67.89 kB / 0.9819 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.131/1.133, allocations: 176.1 MB / 1.154 GB, free: 33.29 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001944/1.135, allocations: 0.675 MB / 1.155 GB, free: 32.88 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.00121/1.136, allocations: 1.098 MB / 1.156 GB, free: 32.07 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.213e-05/1.136, allocations: 0 / 1.156 GB, free: 32.07 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.985e-05/1.136, allocations: 6.312 kB / 1.156 GB, free: 32.07 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 7.289e-05/1.137, allocations: 7.875 kB / 1.156 GB, free: 32.06 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/1.137, allocations: 53.97 kB / 1.156 GB, free: 32.03 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001145/1.137, allocations: 71.05 kB / 1.156 GB, free: 32 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/1.137, allocations: 14.34 kB / 1.156 GB, free: 31.99 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.089e-05/1.137, allocations: 31.67 kB / 1.156 GB, free: 31.98 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 5.713e-05/1.137, allocations: 21.7 kB / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/1.137, allocations: 8 kB / 1.156 GB, free: 31.97 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.741e-05/1.137, allocations: 24.28 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.548e-05/1.137, allocations: 17.73 kB / 1.156 GB, free: 31.95 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 4.045e-05/1.137, allocations: 26.89 kB / 1.156 GB, free: 31.93 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001517/1.137, allocations: 89.19 kB / 1.156 GB, free: 31.9 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/1.137, allocations: 0 / 1.156 GB, free: 31.9 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.413e-06/1.137, allocations: 0 / 1.156 GB, free: 31.9 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.184e-05/1.137, allocations: 0 / 1.156 GB, free: 31.9 MB / 1.076 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.0005478/1.138, allocations: 313.5 kB / 1.156 GB, free: 31.61 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/1.138, allocations: 12.47 kB / 1.156 GB, free: 31.61 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.198e-05/1.138, allocations: 3.75 kB / 1.156 GB, free: 31.61 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.306e-05/1.138, allocations: 123.3 kB / 1.156 GB, free: 31.47 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/1.138, allocations: 3.25 kB / 1.156 GB, free: 31.47 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/1.138, allocations: 3.188 kB / 1.156 GB, free: 31.47 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/1.138, allocations: 84.73 kB / 1.157 GB, free: 31.43 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/1.138, allocations: 4.188 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/1.138, allocations: 6.75 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/1.138, allocations: 3.938 kB / 1.157 GB, free: 31.41 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/1.139, allocations: 58.09 kB / 1.157 GB, free: 31.4 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004048/1.139, allocations: 228.3 kB / 1.157 GB, free: 31.19 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/1.139, allocations: 78.3 kB / 1.157 GB, free: 31.14 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/1.139, allocations: 44.38 kB / 1.157 GB, free: 31.12 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/1.139, allocations: 2.469 kB / 1.157 GB, free: 31.12 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002215/1.14, allocations: 95.17 kB / 1.157 GB, free: 31.05 MB / 1.076 GB Notification: Performance of pre-optimization done (n=10): time 1.542e-06/1.14, allocations: 0 / 1.157 GB, free: 31.05 MB / 1.076 GB Notification: Performance of matching and sorting (n=10): time 0.0004697/1.14, allocations: 175.1 kB / 1.157 GB, free: 30.98 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/1.14, allocations: 57.48 kB / 1.157 GB, free: 30.92 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.543e-05/1.14, allocations: 117.6 kB / 1.157 GB, free: 30.8 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/1.14, allocations: 32.39 kB / 1.157 GB, free: 30.77 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.166e-05/1.14, allocations: 86.94 kB / 1.157 GB, free: 30.68 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/1.14, allocations: 25.58 kB / 1.157 GB, free: 30.66 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/1.14, allocations: 31.38 kB / 1.158 GB, free: 30.64 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.196e-05/1.14, allocations: 320.5 kB / 1.158 GB, free: 30.32 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/1.14, allocations: 35.72 kB / 1.158 GB, free: 30.31 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/1.141, allocations: 61.06 kB / 1.158 GB, free: 30.28 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/1.141, allocations: 103.3 kB / 1.158 GB, free: 30.22 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/1.141, allocations: 3.234 kB / 1.158 GB, free: 30.22 MB / 1.076 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000277/1.141, allocations: 145.6 kB / 1.158 GB, free: 30.15 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/1.141, allocations: 8.891 kB / 1.158 GB, free: 30.15 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/1.141, allocations: 2.75 kB / 1.158 GB, free: 30.15 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/1.141, allocations: 0 / 1.158 GB, free: 30.15 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/1.141, allocations: 31.92 kB / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/1.141, allocations: 0 / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.11e-05/1.141, allocations: 16.56 kB / 1.158 GB, free: 30.13 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/1.141, allocations: 5.25 kB / 1.158 GB, free: 30.13 MB / 1.076 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 7.627e-05/1.141, allocations: 127.4 kB / 1.158 GB, free: 30 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/1.141, allocations: 7.266 kB / 1.158 GB, free: 30 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003193/1.142, allocations: 145.1 kB / 1.158 GB, free: 29.93 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/1.142, allocations: 7.031 kB / 1.158 GB, free: 29.92 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/1.142, allocations: 0 / 1.158 GB, free: 29.92 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/1.142, allocations: 0 / 1.158 GB, free: 29.92 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004198/1.142, allocations: 352.5 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/1.142, allocations: 3.938 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.494e-05/1.142, allocations: 12.02 kB / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/1.142, allocations: 0 / 1.159 GB, free: 29.64 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/1.142, allocations: 10.78 kB / 1.159 GB, free: 29.63 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/1.142, allocations: 3.938 kB / 1.159 GB, free: 29.63 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/1.142, allocations: 4 kB / 1.159 GB, free: 29.62 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002985/1.143, allocations: 245.5 kB / 1.159 GB, free: 29.46 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.021e-05/1.143, allocations: 6.906 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/1.143, allocations: 0 / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/1.143, allocations: 8.688 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.118e-05/1.143, allocations: 10.52 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/1.143, allocations: 6.109 kB / 1.159 GB, free: 29.45 MB / 1.076 GB Notification: Performance of sorting global known variables: time 2.508e-05/1.143, allocations: 84.28 kB / 1.159 GB, free: 29.37 MB / 1.076 GB Notification: Performance of sort global known variables: time 6e-08/1.143, allocations: 0 / 1.159 GB, free: 29.37 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002474/1.143, allocations: 24.59 kB / 1.159 GB, free: 29.36 MB / 1.076 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.0001282/1.143, allocations: 104.7 kB / 1.159 GB, free: 29.27 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003025/1.143, allocations: 96.61 kB / 1.159 GB, free: 29.25 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.143, allocations: 0 / 1.159 GB, free: 29.25 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/1.144, allocations: 43.41 kB / 1.159 GB, free: 29.24 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/1.144, allocations: 19.05 kB / 1.159 GB, free: 29.23 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003672/1.144, allocations: 158.1 kB / 1.16 GB, free: 29.1 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.629e-05/1.144, allocations: 72.53 kB / 1.16 GB, free: 29.03 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.328e-05/1.144, allocations: 6.578 kB / 1.16 GB, free: 29.03 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.931e-05/1.144, allocations: 17.97 kB / 1.16 GB, free: 29.02 MB / 1.076 GB Notification: Performance of SimCode: time 3.41e-07/1.144, allocations: 0 / 1.16 GB, free: 29.02 MB / 1.076 GB Notification: Performance of Templates: time 0.005128/1.149, allocations: 1.068 MB / 1.161 GB, free: 28.88 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.200250947964378]