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.001655/0.001655, allocations: 114.9 kB / 17.13 MB, free: 6.008 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.002045/0.002045, allocations: 212.7 kB / 20.1 MB, free: 3.055 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.511/1.511, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.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.929/2.929, allocations: 0.49 GB / 0.7923 GB, free: 1.266 MB / 0.6231 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.002042/0.002042, allocations: 63.91 kB / 1.15 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.084/1.086, allocations: 176.1 MB / 1.322 GB, free: 25.02 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001899/1.088, allocations: 0.685 MB / 1.323 GB, free: 24.59 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001362/1.09, allocations: 1.12 MB / 1.324 GB, free: 23.76 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.114e-05/1.09, allocations: 2.719 kB / 1.324 GB, free: 23.76 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.195e-05/1.09, allocations: 7.938 kB / 1.324 GB, free: 23.75 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.283e-05/1.09, allocations: 3.938 kB / 1.324 GB, free: 23.75 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000346/1.09, allocations: 52.12 kB / 1.324 GB, free: 23.72 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001126/1.09, allocations: 67.75 kB / 1.324 GB, free: 23.69 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.937e-05/1.09, allocations: 17.94 kB / 1.324 GB, free: 23.68 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.185e-05/1.09, allocations: 21.88 kB / 1.324 GB, free: 23.67 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.294e-05/1.09, allocations: 34.19 kB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.785e-05/1.09, allocations: 7.844 kB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.445e-05/1.091, allocations: 28.69 kB / 1.324 GB, free: 23.64 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.994e-05/1.091, allocations: 14.11 kB / 1.324 GB, free: 23.64 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.391e-05/1.091, allocations: 35.39 kB / 1.324 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001584/1.091, allocations: 80.02 kB / 1.324 GB, free: 23.59 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/1.091, allocations: 0 / 1.324 GB, free: 23.59 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.272e-06/1.091, allocations: 0 / 1.324 GB, free: 23.59 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.588e-06/1.091, allocations: 0 / 1.324 GB, free: 23.59 MB / 1.061 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.000585/1.091, allocations: 386.2 kB / 1.324 GB, free: 23.21 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/1.091, allocations: 11.67 kB / 1.324 GB, free: 23.21 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.751e-05/1.092, allocations: 14.69 kB / 1.324 GB, free: 23.2 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.028e-05/1.092, allocations: 170.7 kB / 1.325 GB, free: 23 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/1.092, allocations: 10.06 kB / 1.325 GB, free: 22.99 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/1.092, allocations: 4.812 kB / 1.325 GB, free: 22.99 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/1.092, allocations: 87.42 kB / 1.325 GB, free: 22.94 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/1.092, allocations: 192 / 1.325 GB, free: 22.94 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/1.092, allocations: 7.938 kB / 1.325 GB, free: 22.93 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/1.092, allocations: 0 / 1.325 GB, free: 22.93 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/1.092, allocations: 61.73 kB / 1.325 GB, free: 22.92 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004332/1.093, allocations: 306.9 kB / 1.325 GB, free: 22.62 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001844/1.093, allocations: 77.25 kB / 1.325 GB, free: 22.58 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/1.093, allocations: 37.27 kB / 1.325 GB, free: 22.57 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/1.093, allocations: 4 kB / 1.325 GB, free: 22.56 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/1.093, allocations: 99.72 kB / 1.325 GB, free: 22.49 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/1.093, allocations: 0 / 1.325 GB, free: 22.49 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0004719/1.094, allocations: 167.3 kB / 1.325 GB, free: 22.43 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/1.094, allocations: 61.67 kB / 1.325 GB, free: 22.36 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.037e-05/1.094, allocations: 113.5 kB / 1.326 GB, free: 22.25 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/1.094, allocations: 32.2 kB / 1.326 GB, free: 22.21 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.698e-05/1.094, allocations: 82.88 kB / 1.326 GB, free: 22.13 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/1.094, allocations: 30.03 kB / 1.326 GB, free: 22.11 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/1.094, allocations: 36.5 kB / 1.326 GB, free: 22.08 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.866e-05/1.094, allocations: 318.3 kB / 1.326 GB, free: 21.76 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/1.094, allocations: 36.62 kB / 1.326 GB, free: 21.75 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/1.094, allocations: 74.06 kB / 1.326 GB, free: 21.71 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/1.094, allocations: 104.5 kB / 1.326 GB, free: 21.65 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/1.094, allocations: 0 / 1.326 GB, free: 21.65 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002836/1.095, allocations: 143.6 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/1.095, allocations: 5.25 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/1.095, allocations: 0 / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/1.095, allocations: 2.594 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/1.095, allocations: 20.72 kB / 1.326 GB, free: 21.58 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/1.095, allocations: 2.594 kB / 1.326 GB, free: 21.58 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.195e-05/1.095, allocations: 21.31 kB / 1.326 GB, free: 21.57 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/1.095, allocations: 6.812 kB / 1.326 GB, free: 21.57 MB / 1.061 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 6.334e-05/1.095, allocations: 119.6 kB / 1.327 GB, free: 21.45 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/1.095, allocations: 10.27 kB / 1.327 GB, free: 21.44 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/1.095, allocations: 141.9 kB / 1.327 GB, free: 21.37 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/1.095, allocations: 3.328 kB / 1.327 GB, free: 21.37 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/1.095, allocations: 0 / 1.327 GB, free: 21.37 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/1.095, allocations: 2.656 kB / 1.327 GB, free: 21.37 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000419/1.096, allocations: 419.3 kB / 1.327 GB, free: 21.02 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/1.096, allocations: 0 / 1.327 GB, free: 21.02 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.656e-05/1.096, allocations: 14.78 kB / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/1.096, allocations: 2.469 kB / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/1.096, allocations: 4 kB / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/1.096, allocations: 0 / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/1.096, allocations: 0 / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/1.096, allocations: 240.3 kB / 1.327 GB, free: 20.84 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.032e-05/1.096, allocations: 84.42 kB / 1.327 GB, free: 20.74 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/1.096, allocations: 6.156 kB / 1.327 GB, free: 20.74 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/1.096, allocations: 8.516 kB / 1.327 GB, free: 20.74 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/1.096, allocations: 6.859 kB / 1.327 GB, free: 20.74 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/1.096, allocations: 10.09 kB / 1.328 GB, free: 20.73 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.186e-05/1.096, allocations: 91.97 kB / 1.328 GB, free: 20.65 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.096, allocations: 0 / 1.328 GB, free: 20.65 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002688/1.097, allocations: 19.69 kB / 1.328 GB, free: 20.64 MB / 1.061 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.000137/1.097, allocations: 103.3 kB / 1.328 GB, free: 20.56 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003394/1.097, allocations: 94.14 kB / 1.328 GB, free: 20.54 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.097, allocations: 0 / 1.328 GB, free: 20.54 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/1.097, allocations: 47.95 kB / 1.328 GB, free: 20.52 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/1.097, allocations: 14.66 kB / 1.328 GB, free: 20.52 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000396/1.098, allocations: 195.1 kB / 1.328 GB, free: 20.34 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001269/1.098, allocations: 0.6869 MB / 1.329 GB, free: 19.64 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/1.098, allocations: 11.84 kB / 1.329 GB, free: 19.64 MB / 1.061 GB Notification: Performance of SimCode: time 3.3e-07/1.098, allocations: 1.062 kB / 1.329 GB, free: 19.64 MB / 1.061 GB Notification: Performance of Templates: time 0.003395/1.101, allocations: 1.111 MB / 1.33 GB, free: 19.54 MB / 1.061 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 -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: 11.634957650006982]