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.0008705/0.0008705, allocations: 80.8 kB / 20.75 MB, free: 3.738 MB / 18.57 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.001286/0.001286, allocations: 161 kB / 24.17 MB, free: 328 kB / 18.57 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 0.9618/0.9618, allocations: 177.2 MB / 204.6 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.88/1.88, allocations: 377.9 MB / 0.624 GB, free: 8.34 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 0.76 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.62e-05/1.754e-05, allocations: 2.312 kB / 0.76 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001419/0.001437, allocations: 0.6961 MB / 0.7607 GB, free: 5.953 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001524/0.00296, allocations: 1.139 MB / 0.7618 GB, free: 4.805 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.778e-05/0.003018, allocations: 3.938 kB / 0.7618 GB, free: 4.801 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 2.933e-05/0.003048, allocations: 5.406 kB / 0.7618 GB, free: 4.797 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 8.092e-05/0.003128, allocations: 6.406 kB / 0.7618 GB, free: 4.793 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.003386, allocations: 56.34 kB / 0.7619 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.003493, allocations: 74.78 kB / 0.7619 GB, free: 4.676 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 6.936e-05/0.003563, allocations: 7.984 kB / 0.7619 GB, free: 4.668 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.003665, allocations: 45.91 kB / 0.762 GB, free: 4.625 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.367e-05/0.003719, allocations: 22.69 kB / 0.762 GB, free: 4.605 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.003738, allocations: 11.94 kB / 0.762 GB, free: 4.594 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 6.07e-05/0.003798, allocations: 16.91 kB / 0.762 GB, free: 4.578 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.409e-05/0.003822, allocations: 15.97 kB / 0.762 GB, free: 4.562 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.032e-05/0.003853, allocations: 27.91 kB / 0.7621 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.003954, allocations: 60.42 kB / 0.7621 GB, free: 4.477 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.003956, allocations: 0.5938 kB / 0.7621 GB, free: 4.477 MB / 0.7136 GB Notification: Performance of FrontEnd: time 5.81e-07/0.003956, allocations: 0 / 0.7621 GB, free: 4.477 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.725e-06/0.003959, allocations: 2.062 kB / 0.7621 GB, free: 4.477 MB / 0.7136 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.000352/0.004311, allocations: 284.7 kB / 0.7624 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.004342, allocations: 12.03 kB / 0.7624 GB, free: 4.16 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.01e-05/0.004422, allocations: 11.11 kB / 0.7624 GB, free: 4.152 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.236e-05/0.004494, allocations: 109.8 kB / 0.7625 GB, free: 4.02 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.004508, allocations: 4.375 kB / 0.7625 GB, free: 4.016 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.004523, allocations: 16.3 kB / 0.7625 GB, free: 4 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.931e-05/0.004622, allocations: 78.91 kB / 0.7626 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.39e-06/0.004628, allocations: 192 / 0.7626 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.004635, allocations: 1.906 kB / 0.7626 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.004638, allocations: 384 / 0.7626 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.983e-05/0.004668, allocations: 15.94 kB / 0.7626 GB, free: 3.898 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002425/0.004911, allocations: 177.5 kB / 0.7628 GB, free: 3.711 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.604e-05/0.004987, allocations: 58.42 kB / 0.7629 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.077e-05/0.005008, allocations: 14.08 kB / 0.7629 GB, free: 3.629 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.005024, allocations: 0 / 0.7629 GB, free: 3.629 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.677e-05/0.00509, allocations: 71.33 kB / 0.7629 GB, free: 3.547 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 7.92e-07/0.005091, allocations: 1.203 kB / 0.7629 GB, free: 3.547 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0001201/0.005211, allocations: 85.47 kB / 0.763 GB, free: 3.457 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.005245, allocations: 60.03 kB / 0.7631 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.405e-05/0.005299, allocations: 118.7 kB / 0.7632 GB, free: 3.258 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.005313, allocations: 27.45 kB / 0.7632 GB, free: 3.227 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.033e-05/0.005343, allocations: 88.38 kB / 0.7633 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.005364, allocations: 27.77 kB / 0.7633 GB, free: 3.105 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.414e-05/0.005398, allocations: 29.7 kB / 0.7634 GB, free: 3.07 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.58e-05/0.005484, allocations: 322.8 kB / 0.7637 GB, free: 2.746 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.686e-05/0.0055, allocations: 14.83 kB / 0.7637 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.693e-05/0.005527, allocations: 30.58 kB / 0.7637 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.155e-05/0.005579, allocations: 54.47 kB / 0.7638 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005581, allocations: 0 / 0.7638 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.76e-05/0.005658, allocations: 81.59 kB / 0.7638 GB, free: 2.547 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.00567, allocations: 11.69 kB / 0.7639 GB, free: 2.539 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.005674, allocations: 0 / 0.7639 GB, free: 2.539 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.005685, allocations: 3.938 kB / 0.7639 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.357e-05/0.005758, allocations: 23.98 kB / 0.7639 GB, free: 2.512 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.296e-06/0.005762, allocations: 3.938 kB / 0.7639 GB, free: 2.508 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.567e-05/0.005787, allocations: 12.2 kB / 0.7639 GB, free: 2.496 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-06/0.005795, allocations: 4 kB / 0.7639 GB, free: 2.492 MB / 0.7136 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.278e-05/0.005857, allocations: 126.5 kB / 0.764 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.038e-05/0.005868, allocations: 9.031 kB / 0.764 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.367e-05/0.005951, allocations: 74.03 kB / 0.7641 GB, free: 2.273 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.005954, allocations: 3.938 kB / 0.7641 GB, free: 2.27 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.005956, allocations: 4.844 kB / 0.7641 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.005959, allocations: 0 / 0.7641 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.006129, allocations: 227.5 kB / 0.7643 GB, free: 2.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.00613, allocations: 0 / 0.7643 GB, free: 2.02 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.573e-05/0.006156, allocations: 8.75 kB / 0.7643 GB, free: 2.012 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.006157, allocations: 0 / 0.7643 GB, free: 2.012 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-06/0.006162, allocations: 4.688 kB / 0.7643 GB, free: 2.008 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.006164, allocations: 3.984 kB / 0.7643 GB, free: 2.004 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.006165, allocations: 0.5938 kB / 0.7643 GB, free: 2.004 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.821e-05/0.006254, allocations: 163.5 kB / 0.7645 GB, free: 1.828 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-06/0.006259, allocations: 7.422 kB / 0.7645 GB, free: 1.824 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.006272, allocations: 7.938 kB / 0.7645 GB, free: 1.816 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.05e-05/0.006312, allocations: 7.984 kB / 0.7645 GB, free: 1.809 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.533e-05/0.006338, allocations: 11.98 kB / 0.7645 GB, free: 1.797 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.006341, allocations: 0 / 0.7645 GB, free: 1.797 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.039e-05/0.006352, allocations: 12.84 kB / 0.7645 GB, free: 1.781 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006352, allocations: 0 / 0.7645 GB, free: 1.781 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001288/0.006481, allocations: 23.98 kB / 0.7646 GB, free: 1.758 MB / 0.7136 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 8.68e-05/0.006567, allocations: 87.33 kB / 0.7646 GB, free: 1.668 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.013e-05/0.006647, allocations: 67.09 kB / 0.7647 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.592e-06/0.006649, allocations: 0 / 0.7647 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.025e-05/0.006679, allocations: 21.52 kB / 0.7647 GB, free: 1.578 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.006799, allocations: 8.312 kB / 0.7647 GB, free: 1.57 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003294/0.007129, allocations: 170.9 kB / 0.7649 GB, free: 1.379 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.946e-05/0.007158, allocations: 63.3 kB / 0.765 GB, free: 1.297 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.42e-05/0.007182, allocations: 14.03 kB / 0.765 GB, free: 1.285 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.54e-05/0.007228, allocations: 55.38 kB / 0.765 GB, free: 1.23 MB / 0.7136 GB Notification: Performance of SimCode: time 4.2e-07/0.007228, allocations: 0 / 0.765 GB, free: 1.23 MB / 0.7136 GB Notification: Performance of Templates: time 0.002387/0.009615, allocations: 1.127 MB / 0.7661 GB, free: 176 kB / 0.7136 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.988520456012338]