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.00137/0.00137, allocations: 108.8 kB / 18.93 MB, free: 2.945 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.00143, allocations: 192.2 kB / 22.23 MB, free: 5.16 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.516/1.516, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.682/2.682, allocations: 443.5 MB / 0.7321 GB, free: 12.26 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-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.00201/0.00201, allocations: 67.89 kB / 1.061 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.098/1.1, allocations: 160.8 MB / 1.218 GB, free: 3.621 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002546/1.103, allocations: 0.6938 MB / 1.219 GB, free: 3.098 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002267/1.105, allocations: 1.081 MB / 1.22 GB, free: 2.227 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.447e-05/1.105, allocations: 0 / 1.22 GB, free: 2.227 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.3e-05/1.105, allocations: 3.938 kB / 1.22 GB, free: 2.223 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001068/1.106, allocations: 5.031 kB / 1.22 GB, free: 2.219 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/1.106, allocations: 54.28 kB / 1.22 GB, free: 2.176 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001958/1.106, allocations: 64.34 kB / 1.22 GB, free: 2.141 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/1.106, allocations: 15.72 kB / 1.22 GB, free: 2.129 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/1.106, allocations: 31.16 kB / 1.22 GB, free: 2.109 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/1.107, allocations: 36.38 kB / 1.22 GB, free: 2.082 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.141e-05/1.107, allocations: 7 kB / 1.22 GB, free: 2.082 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/1.107, allocations: 15.38 kB / 1.22 GB, free: 2.078 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.746e-05/1.107, allocations: 19.72 kB / 1.22 GB, free: 2.062 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.826e-05/1.107, allocations: 34.45 kB / 1.22 GB, free: 2.035 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002801/1.107, allocations: 78.36 kB / 1.221 GB, free: 1.98 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/1.107, allocations: 0 / 1.221 GB, free: 1.98 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.316e-06/1.107, allocations: 5.125 kB / 1.221 GB, free: 1.977 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.438e-06/1.107, allocations: 0 / 1.221 GB, free: 1.977 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.0009972/1.108, allocations: 382.8 kB / 1.221 GB, free: 1.582 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/1.108, allocations: 9.781 kB / 1.221 GB, free: 1.582 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.863e-05/1.108, allocations: 7.734 kB / 1.221 GB, free: 1.578 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/1.108, allocations: 163.1 kB / 1.221 GB, free: 1.383 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.345e-05/1.108, allocations: 7.812 kB / 1.221 GB, free: 1.379 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/1.109, allocations: 13 kB / 1.221 GB, free: 1.371 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003082/1.109, allocations: 78.7 kB / 1.221 GB, free: 1.312 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/1.109, allocations: 192 / 1.221 GB, free: 1.312 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/1.109, allocations: 9.031 kB / 1.221 GB, free: 1.305 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/1.109, allocations: 1.125 kB / 1.221 GB, free: 1.305 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002471/1.109, allocations: 54.14 kB / 1.221 GB, free: 1.281 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008157/1.11, allocations: 320.8 kB / 1.222 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/1.11, allocations: 82.22 kB / 1.222 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/1.11, allocations: 34.88 kB / 1.222 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/1.11, allocations: 5.078 kB / 1.222 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003444/1.111, allocations: 92.3 kB / 1.222 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/1.111, allocations: 3.938 kB / 1.222 GB, free: 0.7812 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0005975/1.111, allocations: 169.5 kB / 1.222 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.842e-05/1.111, allocations: 61.56 kB / 1.222 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/1.112, allocations: 105.9 kB / 1.222 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/1.112, allocations: 31.64 kB / 1.222 GB, free: 492 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.104e-05/1.112, allocations: 90.52 kB / 1.222 GB, free: 396 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.854e-05/1.112, allocations: 24.17 kB / 1.222 GB, free: 376 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.16e-05/1.112, allocations: 39.14 kB / 1.222 GB, free: 340 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001992/1.112, allocations: 320.8 kB / 1.223 GB, free: 12 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/1.112, allocations: 37 kB / 1.223 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/1.112, allocations: 61.22 kB / 1.223 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002723/1.113, allocations: 106.8 kB / 1.223 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/1.113, allocations: 0 / 1.223 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003416/1.113, allocations: 142.2 kB / 1.223 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/1.113, allocations: 9.25 kB / 1.223 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/1.113, allocations: 1.094 kB / 1.223 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/1.113, allocations: 1.219 kB / 1.223 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/1.113, allocations: 19.02 kB / 1.223 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/1.113, allocations: 1.188 kB / 1.223 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.694e-05/1.113, allocations: 17.03 kB / 1.223 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/1.113, allocations: 4 kB / 1.223 GB, free: 15.78 MB / 0.9356 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.0001456/1.113, allocations: 135.8 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.894e-05/1.113, allocations: 10.33 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003711/1.114, allocations: 148.1 kB / 1.223 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/1.114, allocations: 1.438 kB / 1.223 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/1.114, allocations: 0.8125 kB / 1.223 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/1.114, allocations: 0 / 1.223 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00062/1.114, allocations: 412.2 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/1.114, allocations: 4 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.364e-05/1.114, allocations: 8.031 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/1.114, allocations: 5.078 kB / 1.224 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/1.114, allocations: 9.078 kB / 1.224 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/1.114, allocations: 256 / 1.224 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.114, allocations: 1.062 kB / 1.224 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/1.115, allocations: 240.2 kB / 1.224 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.137e-05/1.115, allocations: 88.02 kB / 1.224 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/1.115, allocations: 5.156 kB / 1.224 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/1.115, allocations: 12.45 kB / 1.224 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/1.115, allocations: 7.828 kB / 1.224 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/1.115, allocations: 6.469 kB / 1.224 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.567e-05/1.115, allocations: 83.56 kB / 1.224 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/1.115, allocations: 3.938 kB / 1.224 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002571/1.115, allocations: 19.72 kB / 1.224 GB, free: 14.75 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.0001982/1.116, allocations: 109.9 kB / 1.224 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003543/1.116, allocations: 95.28 kB / 1.224 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/1.116, allocations: 1.125 kB / 1.224 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/1.116, allocations: 48.31 kB / 1.224 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/1.116, allocations: 10.89 kB / 1.224 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004471/1.117, allocations: 166 kB / 1.224 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004012/1.117, allocations: 0.6844 MB / 1.225 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.34e-05/1.117, allocations: 8.641 kB / 1.225 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.601e-05/1.117, allocations: 11.72 kB / 1.225 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of SimCode: time 3.9e-07/1.117, allocations: 0 / 1.225 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of Templates: time 0.004832/1.122, allocations: 1.077 MB / 1.226 GB, free: 13.18 MB / 0.9356 GB " [Timeout remaining time 299] 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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 9.356869091279805]