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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 108.9 kB / 16.42 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 185.7 kB / 17.35 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.764/2.764, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 67.91 kB / 1.019 GB, free: 9.441 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.099/1.1, allocations: 151.6 MB / 1.167 GB, free: 3.859 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002793/1.103, allocations: 0.6902 MB / 1.168 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001804/1.105, allocations: 1.064 MB / 1.169 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.887e-05/1.105, allocations: 0 / 1.169 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.738e-05/1.105, allocations: 7.922 kB / 1.169 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.507e-05/1.105, allocations: 11.94 kB / 1.169 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003779/1.106, allocations: 47.83 kB / 1.169 GB, free: 2.027 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001585/1.106, allocations: 75.75 kB / 1.169 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/1.106, allocations: 8 kB / 1.169 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/1.106, allocations: 27.92 kB / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.785e-05/1.106, allocations: 31.89 kB / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/1.106, allocations: 8 kB / 1.169 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.526e-05/1.106, allocations: 19.98 kB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.1e-05/1.106, allocations: 23.92 kB / 1.169 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.085e-05/1.106, allocations: 27.86 kB / 1.169 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001919/1.107, allocations: 75.69 kB / 1.169 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/1.107, allocations: 4 kB / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.593e-06/1.107, allocations: 0 / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.047e-05/1.107, allocations: 0 / 1.169 GB, free: 1.73 MB / 0.8887 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.0007544/1.107, allocations: 379.2 kB / 1.17 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/1.107, allocations: 20.84 kB / 1.17 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.675e-05/1.108, allocations: 8.844 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/1.108, allocations: 162.2 kB / 1.17 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.334e-05/1.108, allocations: 4.375 kB / 1.17 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/1.108, allocations: 8.375 kB / 1.17 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/1.108, allocations: 86.14 kB / 1.17 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/1.108, allocations: 4.172 kB / 1.17 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/1.108, allocations: 3.938 kB / 1.17 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/1.108, allocations: 0 / 1.17 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002156/1.108, allocations: 59.89 kB / 1.17 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000592/1.109, allocations: 316.7 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/1.109, allocations: 82.47 kB / 1.17 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/1.109, allocations: 44.95 kB / 1.17 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/1.109, allocations: 3.938 kB / 1.17 GB, free: 432 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/1.11, allocations: 91.48 kB / 1.171 GB, free: 328 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=10): time 1.824e-06/1.11, allocations: 0 / 1.171 GB, free: 328 kB / 0.8887 GB Notification: Performance of matching and sorting (n=10): time 0.0005276/1.11, allocations: 173.5 kB / 1.171 GB, free: 148 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/1.11, allocations: 59.41 kB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/1.11, allocations: 105.8 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/1.11, allocations: 29.7 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.737e-05/1.11, allocations: 92.36 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/1.11, allocations: 28.02 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.164e-05/1.11, allocations: 29.7 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001584/1.111, allocations: 322.8 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/1.111, allocations: 35.98 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/1.111, allocations: 66.47 kB / 1.171 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/1.111, allocations: 102.5 kB / 1.172 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/1.111, allocations: 7.938 kB / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000334/1.112, allocations: 145.4 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/1.112, allocations: 4 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/1.112, allocations: 0 / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/1.112, allocations: 4 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/1.112, allocations: 19.92 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/1.112, allocations: 4 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.262e-05/1.112, allocations: 15.95 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/1.112, allocations: 8 kB / 1.172 GB, free: 15.01 MB / 0.9044 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.0001146/1.112, allocations: 117.8 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.604e-05/1.112, allocations: 4 kB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003571/1.112, allocations: 149.9 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/1.112, allocations: 0 / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/1.112, allocations: 256 / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.138e-05/1.112, allocations: 85.02 kB / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/1.112, allocations: 11.98 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.723e-05/1.113, allocations: 11.98 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/1.113, allocations: 7.938 kB / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003818/1.113, allocations: 212.8 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003908/1.113, allocations: 314.6 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001402/1.114, allocations: 48.19 kB / 1.173 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.7e-05/1.114, allocations: 91.2 kB / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of Backend: time 4.81e-07/1.114, allocations: 0 / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005832/1.114, allocations: 142.4 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006643/1.115, allocations: 0.5927 MB / 1.173 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of Templates: time 0.004035/1.119, allocations: 1.152 MB / 1.175 GB, free: 11.99 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) 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/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches