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.008956/0.008956, allocations: 96.88 kB / 15.73 MB, free: 6.055 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.001493/0.001493, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.601/2.601, allocations: 437 MB / 0.7105 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 63.91 kB / 1.018 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.14/1.142, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00239/1.144, allocations: 0.6897 MB / 1.167 GB, free: 3.156 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001616/1.146, allocations: 1.068 MB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.593e-05/1.146, allocations: 3.938 kB / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.753e-05/1.146, allocations: 11.88 kB / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.47e-05/1.146, allocations: 7.922 kB / 1.168 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000365/1.146, allocations: 47.83 kB / 1.168 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001566/1.147, allocations: 67.89 kB / 1.168 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/1.147, allocations: 8 kB / 1.168 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.732e-05/1.147, allocations: 31.91 kB / 1.168 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.034e-05/1.147, allocations: 31.84 kB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.034e-05/1.147, allocations: 4 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.453e-05/1.147, allocations: 27.98 kB / 1.169 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.666e-05/1.147, allocations: 11.97 kB / 1.169 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.569e-05/1.147, allocations: 35.86 kB / 1.169 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001884/1.147, allocations: 80.19 kB / 1.169 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/1.147, allocations: 0 / 1.169 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.933e-06/1.147, allocations: 0 / 1.169 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.374e-06/1.147, allocations: 0 / 1.169 GB, free: 1.715 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.0007679/1.148, allocations: 383.2 kB / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/1.148, allocations: 12.92 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.3e-05/1.148, allocations: 16.88 kB / 1.169 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/1.148, allocations: 160.4 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/1.148, allocations: 8.375 kB / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/1.148, allocations: 4.375 kB / 1.169 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/1.149, allocations: 82.14 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/1.149, allocations: 192 / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/1.149, allocations: 11.94 kB / 1.169 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/1.149, allocations: 4 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002155/1.149, allocations: 51.94 kB / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006504/1.15, allocations: 312.7 kB / 1.17 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/1.15, allocations: 94.41 kB / 1.17 GB, free: 456 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/1.15, allocations: 44.83 kB / 1.17 GB, free: 408 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/1.15, allocations: 0 / 1.17 GB, free: 408 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/1.15, allocations: 95.3 kB / 1.17 GB, free: 300 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=10): time 1.532e-06/1.15, allocations: 0 / 1.17 GB, free: 300 kB / 0.8887 GB Notification: Performance of matching and sorting (n=10): time 0.0005186/1.151, allocations: 173.7 kB / 1.17 GB, free: 120 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/1.151, allocations: 59.41 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/1.151, allocations: 105.8 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/1.151, allocations: 29.7 kB / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.255e-05/1.151, allocations: 88.31 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/1.151, allocations: 31.78 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-05/1.151, allocations: 29.7 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001633/1.151, allocations: 318.8 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/1.152, allocations: 39.97 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/1.152, allocations: 62.53 kB / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/1.152, allocations: 102.5 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.152, allocations: 7.938 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003345/1.152, allocations: 141.6 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/1.152, allocations: 4 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/1.152, allocations: 0 / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/1.152, allocations: 0 / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/1.153, allocations: 19.98 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/1.153, allocations: 4 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.675e-05/1.153, allocations: 20 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/1.153, allocations: 4 kB / 1.171 GB, free: 15 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.0001486/1.153, allocations: 129.7 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/1.153, allocations: 7.953 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003717/1.153, allocations: 146.3 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/1.153, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/1.153, allocations: 4 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.153, allocations: 352 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005899/1.154, allocations: 406.3 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/1.154, allocations: 11.98 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.754e-05/1.154, allocations: 4 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/1.154, allocations: 4 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/1.154, allocations: 7.984 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/1.154, allocations: 0 / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.154, allocations: 7.984 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003822/1.154, allocations: 235.3 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.295e-05/1.155, allocations: 81.06 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/1.155, allocations: 7.984 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/1.155, allocations: 11.98 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/1.155, allocations: 8 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/1.155, allocations: 7.875 kB / 1.172 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.041e-05/1.155, allocations: 87.27 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/1.155, allocations: 4 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000265/1.155, allocations: 16 kB / 1.172 GB, free: 13.73 MB / 0.9044 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.0002387/1.155, allocations: 119.1 kB / 1.172 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003546/1.156, allocations: 99.98 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/1.156, allocations: 0 / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/1.156, allocations: 47.97 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/1.156, allocations: 4.594 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005121/1.157, allocations: 166.5 kB / 1.173 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/1.157, allocations: 0.6886 MB / 1.173 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.047e-05/1.157, allocations: 8.438 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.839e-05/1.157, allocations: 15.42 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of SimCode: time 4.91e-07/1.157, allocations: 0 / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of Templates: time 0.004218/1.161, allocations: 1.031 MB / 1.174 GB, free: 11.5 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/jenkins/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