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.001327/0.001327, allocations: 112.1 kB / 17.08 MB, free: 6.012 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.00143/0.001431, allocations: 193.2 kB / 20.03 MB, free: 3.082 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.497/1.497, allocations: 222.9 MB / 245.7 MB, free: 4.215 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.697/2.697, allocations: 437.1 MB / 0.7178 GB, free: 4.504 MB / 0.5606 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.001979/0.00198, allocations: 67.89 kB / 1.028 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3215, allocations: 151.6 MB / 1.176 GB, free: 6.027 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001871/0.3234, allocations: 0.6875 MB / 1.177 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001351/0.3247, allocations: 1.066 MB / 1.178 GB, free: 4.25 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.343e-05/0.3248, allocations: 0 / 1.178 GB, free: 4.25 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.276e-05/0.3248, allocations: 3.938 kB / 1.178 GB, free: 4.246 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.312e-05/0.3249, allocations: 7.922 kB / 1.178 GB, free: 4.238 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002659/0.3252, allocations: 47.83 kB / 1.178 GB, free: 4.191 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000109/0.3253, allocations: 75.81 kB / 1.178 GB, free: 4.117 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.001e-05/0.3254, allocations: 8 kB / 1.178 GB, free: 4.109 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.524e-05/0.3255, allocations: 27.92 kB / 1.178 GB, free: 4.082 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.305e-05/0.3255, allocations: 31.91 kB / 1.178 GB, free: 4.051 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.3256, allocations: 4 kB / 1.178 GB, free: 4.047 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.386e-05/0.3256, allocations: 27.91 kB / 1.178 GB, free: 4.02 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.034e-05/0.3257, allocations: 15.92 kB / 1.178 GB, free: 4.004 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.833e-05/0.3257, allocations: 31.86 kB / 1.178 GB, free: 3.973 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.3259, allocations: 71.75 kB / 1.178 GB, free: 3.902 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3259, allocations: 0 / 1.178 GB, free: 3.902 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.664e-06/0.3259, allocations: 0 / 1.178 GB, free: 3.902 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3259, allocations: 4 kB / 1.178 GB, free: 3.898 MB / 0.92 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.0006316/0.3266, allocations: 383.2 kB / 1.178 GB, free: 3.473 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3266, allocations: 12.03 kB / 1.178 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.289e-05/0.3267, allocations: 16.81 kB / 1.178 GB, free: 3.445 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.3268, allocations: 164.3 kB / 1.178 GB, free: 3.246 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.3268, allocations: 8.375 kB / 1.178 GB, free: 3.238 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.3269, allocations: 12.3 kB / 1.178 GB, free: 3.227 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.3271, allocations: 82.2 kB / 1.179 GB, free: 3.141 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3271, allocations: 192 / 1.179 GB, free: 3.141 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.3271, allocations: 7.938 kB / 1.179 GB, free: 3.133 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3271, allocations: 0 / 1.179 GB, free: 3.133 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.3273, allocations: 51.95 kB / 1.179 GB, free: 3.082 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005268/0.3279, allocations: 312.8 kB / 1.179 GB, free: 2.727 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.3281, allocations: 82.42 kB / 1.179 GB, free: 2.637 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.3282, allocations: 48.83 kB / 1.179 GB, free: 2.586 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.3283, allocations: 0 / 1.179 GB, free: 2.586 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.3285, allocations: 99.55 kB / 1.179 GB, free: 2.477 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.3285, allocations: 3.938 kB / 1.179 GB, free: 2.473 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0005173/0.329, allocations: 169.7 kB / 1.179 GB, free: 2.301 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.3291, allocations: 67.28 kB / 1.179 GB, free: 2.223 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.001e-05/0.3292, allocations: 105.8 kB / 1.179 GB, free: 2.109 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.3292, allocations: 29.7 kB / 1.179 GB, free: 2.074 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.536e-05/0.3293, allocations: 92.31 kB / 1.18 GB, free: 1.977 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.855e-05/0.3293, allocations: 23.84 kB / 1.18 GB, free: 1.953 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.627e-05/0.3294, allocations: 33.7 kB / 1.18 GB, free: 1.914 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3295, allocations: 318.8 kB / 1.18 GB, free: 1.594 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.3297, allocations: 35.97 kB / 1.18 GB, free: 1.559 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.3298, allocations: 66.47 kB / 1.18 GB, free: 1.484 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.3301, allocations: 110.3 kB / 1.18 GB, free: 1.367 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3301, allocations: 384 / 1.18 GB, free: 1.367 MB / 0.92 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003212/0.3304, allocations: 141.5 kB / 1.18 GB, free: 1.223 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.3304, allocations: 8.062 kB / 1.18 GB, free: 1.215 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3304, allocations: 4 kB / 1.18 GB, free: 1.211 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3305, allocations: 3.938 kB / 1.18 GB, free: 1.207 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.3306, allocations: 19.98 kB / 1.18 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.3306, allocations: 4 kB / 1.18 GB, free: 1.184 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.447e-05/0.3307, allocations: 15.94 kB / 1.18 GB, free: 1.168 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.3307, allocations: 4 kB / 1.18 GB, free: 1.164 MB / 0.92 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.0001015/0.3308, allocations: 121.7 kB / 1.18 GB, free: 1.035 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.3308, allocations: 11.95 kB / 1.18 GB, free: 1.023 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003535/0.3312, allocations: 141.9 kB / 1.181 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3312, allocations: 4 kB / 1.181 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.3312, allocations: 0 / 1.181 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.3312, allocations: 0 / 1.181 GB, free: 0.875 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005687/0.3318, allocations: 410.4 kB / 1.181 GB, free: 428 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3318, allocations: 4 kB / 1.181 GB, free: 424 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.672e-05/0.3319, allocations: 8 kB / 1.181 GB, free: 416 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.3319, allocations: 4 kB / 1.181 GB, free: 412 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.3319, allocations: 7.984 kB / 1.181 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3319, allocations: 0 / 1.181 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3319, allocations: 0 / 1.181 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/0.3323, allocations: 235.3 kB / 1.181 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.752e-05/0.3324, allocations: 89 kB / 1.181 GB, free: 44 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.3324, allocations: 12.22 kB / 1.181 GB, free: 32 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.3325, allocations: 11.98 kB / 1.181 GB, free: 20 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.451e-05/0.3326, allocations: 8.281 kB / 1.181 GB, free: 12 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.3326, allocations: 3.938 kB / 1.181 GB, free: 8 kB / 0.92 GB Notification: Performance of sorting global known variables: time 6.976e-05/0.3327, allocations: 87.34 kB / 1.181 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3327, allocations: 7.875 kB / 1.181 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002454/0.3329, allocations: 20 kB / 1.181 GB, free: 15.89 MB / 0.9356 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.0001517/0.3331, allocations: 107.2 kB / 1.182 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000316/0.3334, allocations: 103.8 kB / 1.182 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3334, allocations: 0 / 1.182 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.3336, allocations: 51.91 kB / 1.182 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.3338, allocations: 8.109 kB / 1.182 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003898/0.3342, allocations: 194.1 kB / 1.182 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.3346, allocations: 0.6846 MB / 1.183 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.408e-05/0.3346, allocations: 11.44 kB / 1.183 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.3346, allocations: 0 / 1.183 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of Templates: time 0.002908/0.3375, allocations: 1.105 MB / 1.184 GB, free: 13.57 MB / 0.9356 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.454782546963543]