Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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.00151/0.00151, allocations: 117.2 kB / 17.13 MB, free: 5.758 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.001567/0.001567, allocations: 194.1 kB / 20.08 MB, free: 2.848 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.462/1.462, allocations: 225.6 MB / 248.5 MB, free: 3.637 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.561/2.561, allocations: 443.5 MB / 0.7293 GB, free: 14.51 MB / 0.5763 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 71.89 kB / 1.057 GB, free: 2 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3206, allocations: 160.7 MB / 1.214 GB, free: 0.9805 MB / 0.9513 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002081/0.3226, allocations: 0.6995 MB / 1.215 GB, free: 280 kB / 0.9513 GB Notification: Performance of NFInst.instExpressions: time 0.001468/0.3241, allocations: 1.074 MB / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.872e-05/0.3242, allocations: 0 / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.023e-05/0.3242, allocations: 7.922 kB / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.038e-05/0.3243, allocations: 11.88 kB / 1.216 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.3246, allocations: 43.89 kB / 1.216 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.3247, allocations: 71.77 kB / 1.216 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.3248, allocations: 8 kB / 1.216 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.257e-05/0.3249, allocations: 31.91 kB / 1.216 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.558e-05/0.325, allocations: 31.91 kB / 1.216 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.325, allocations: 4 kB / 1.216 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.772e-05/0.3251, allocations: 19.98 kB / 1.216 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.567e-05/0.3251, allocations: 19.92 kB / 1.216 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.239e-05/0.3251, allocations: 35.84 kB / 1.216 GB, free: 14.9 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.3253, allocations: 67.75 kB / 1.216 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3253, allocations: 0 / 1.216 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3253, allocations: 0 / 1.216 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.3253, allocations: 0 / 1.216 GB, free: 14.84 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.0007034/0.326, allocations: 393.6 kB / 1.216 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.326, allocations: 16.02 kB / 1.217 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.741e-05/0.3261, allocations: 4.891 kB / 1.217 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.3262, allocations: 172.3 kB / 1.217 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.3263, allocations: 4.375 kB / 1.217 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.3263, allocations: 8.375 kB / 1.217 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.3265, allocations: 78.2 kB / 1.217 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3265, allocations: 192 / 1.217 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.3265, allocations: 11.94 kB / 1.217 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3265, allocations: 0 / 1.217 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002221/0.3268, allocations: 59.83 kB / 1.217 GB, free: 14.01 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005385/0.3273, allocations: 304.8 kB / 1.217 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.3275, allocations: 82.47 kB / 1.217 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.3276, allocations: 36.84 kB / 1.217 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.417e-05/0.3277, allocations: 192 / 1.217 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002375/0.3279, allocations: 95.28 kB / 1.217 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.213e-06/0.3279, allocations: 0 / 1.217 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0005167/0.3284, allocations: 177.5 kB / 1.217 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.3285, allocations: 55.41 kB / 1.218 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.114e-05/0.3286, allocations: 109.8 kB / 1.218 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.3286, allocations: 25.7 kB / 1.218 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/0.3286, allocations: 96.3 kB / 1.218 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.3287, allocations: 19.97 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.3287, allocations: 33.64 kB / 1.218 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3289, allocations: 326.8 kB / 1.218 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.329, allocations: 31.98 kB / 1.218 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.3291, allocations: 70.41 kB / 1.218 GB, free: 12.44 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.3294, allocations: 102.5 kB / 1.218 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3294, allocations: 4 kB / 1.218 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003331/0.3297, allocations: 141.5 kB / 1.218 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.3297, allocations: 4 kB / 1.218 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3297, allocations: 0 / 1.218 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3297, allocations: 4 kB / 1.218 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.3299, allocations: 24.23 kB / 1.218 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.3299, allocations: 7.938 kB / 1.219 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.287e-05/0.33, allocations: 15.94 kB / 1.219 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.33, allocations: 8.375 kB / 1.219 GB, free: 12.12 MB / 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 9.774e-05/0.3301, allocations: 117.8 kB / 1.219 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/0.3301, allocations: 7.953 kB / 1.219 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000354/0.3304, allocations: 153.9 kB / 1.219 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3304, allocations: 3.984 kB / 1.219 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3304, allocations: 0 / 1.219 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3305, allocations: 0 / 1.219 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005657/0.331, allocations: 414.3 kB / 1.219 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.331, allocations: 4 kB / 1.219 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.705e-05/0.3311, allocations: 8 kB / 1.219 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3311, allocations: 0 / 1.219 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.3311, allocations: 7.984 kB / 1.219 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.3311, allocations: 0 / 1.219 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3311, allocations: 0 / 1.219 GB, free: 11.34 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003653/0.3315, allocations: 239.3 kB / 1.219 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.3315, allocations: 88.98 kB / 1.22 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.3315, allocations: 4 kB / 1.22 GB, free: 10.98 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3317, allocations: 15.98 kB / 1.22 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.3317, allocations: 4 kB / 1.22 GB, free: 10.96 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.3317, allocations: 7.922 kB / 1.22 GB, free: 10.96 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.844e-05/0.3318, allocations: 87.28 kB / 1.22 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.3318, allocations: 0 / 1.22 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000246/0.332, allocations: 12 kB / 1.22 GB, free: 10.86 MB / 0.9669 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.0001707/0.3322, allocations: 113.1 kB / 1.22 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003161/0.3325, allocations: 96.09 kB / 1.22 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3325, allocations: 4 kB / 1.22 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.3326, allocations: 47.91 kB / 1.22 GB, free: 10.6 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.3329, allocations: 4 kB / 1.22 GB, free: 10.59 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000401/0.3333, allocations: 200.2 kB / 1.22 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.3336, allocations: 0.6885 MB / 1.221 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.736e-05/0.3336, allocations: 15.44 kB / 1.221 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of SimCode: time 3.01e-07/0.3336, allocations: 0 / 1.221 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of Templates: time 0.003027/0.3366, allocations: 1.09 MB / 1.222 GB, free: 8.543 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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: 10.348580387886614]