Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.679/2.679, allocations: 390.3 MB / 405.3 MB, free: 13.51 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 181.1 kB / 498.1 MB, free: 5.754 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 223.2 MB / 0.7948 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009185/0.0009185, allocations: 98.73 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003702, allocations: 9.719 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3157, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1913/0.507, allocations: 149.3 MB / 1.369 GB, free: 12.75 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.5073, allocations: 71.97 kB / 1.369 GB, free: 12.68 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003578/0.5109, allocations: 1.168 MB / 1.37 GB, free: 11.51 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.655e-06/0.511, allocations: 0 / 1.37 GB, free: 11.51 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.511, allocations: 4 kB / 1.37 GB, free: 11.5 MB / 0.8698 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.0005462/0.5115, allocations: 383.2 kB / 1.37 GB, free: 11.08 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.5116, allocations: 8.031 kB / 1.37 GB, free: 11.07 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.086e-05/0.5116, allocations: 7.906 kB / 1.37 GB, free: 11.07 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.5118, allocations: 175 kB / 1.37 GB, free: 10.86 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.5118, allocations: 11.94 kB / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.5118, allocations: 4 kB / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002355/0.5121, allocations: 81.66 kB / 1.371 GB, free: 10.75 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.5121, allocations: 0 / 1.371 GB, free: 10.75 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.5121, allocations: 3.984 kB / 1.371 GB, free: 10.75 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.5121, allocations: 4 kB / 1.371 GB, free: 10.75 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.5124, allocations: 67.94 kB / 1.371 GB, free: 10.68 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006607/0.513, allocations: 340.5 kB / 1.371 GB, free: 10.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.5132, allocations: 86.55 kB / 1.371 GB, free: 10.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.5133, allocations: 7.984 kB / 1.371 GB, free: 10.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.5135, allocations: 103.5 kB / 1.371 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.5136, allocations: 0 / 1.371 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.000537/0.5141, allocations: 181.5 kB / 1.371 GB, free: 9.898 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.5142, allocations: 63.36 kB / 1.371 GB, free: 9.824 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.742e-05/0.5143, allocations: 100.9 kB / 1.371 GB, free: 9.719 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.5143, allocations: 33.7 kB / 1.372 GB, free: 9.68 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.001e-05/0.5143, allocations: 80.38 kB / 1.372 GB, free: 9.594 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.016e-05/0.5144, allocations: 27.7 kB / 1.372 GB, free: 9.566 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.917e-06/0.5144, allocations: 4 kB / 1.372 GB, free: 9.562 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.5146, allocations: 318.8 kB / 1.372 GB, free: 9.242 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.5147, allocations: 44.08 kB / 1.372 GB, free: 9.199 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.5148, allocations: 73.23 kB / 1.372 GB, free: 9.121 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.515, allocations: 51.92 kB / 1.372 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.515, allocations: 4 kB / 1.372 GB, free: 9.066 MB / 0.8698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000318/0.5153, allocations: 149.5 kB / 1.372 GB, free: 8.914 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.5153, allocations: 4 kB / 1.372 GB, free: 8.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.5153, allocations: 4.062 kB / 1.372 GB, free: 8.906 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.5154, allocations: 4 kB / 1.372 GB, free: 8.902 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.5155, allocations: 27.91 kB / 1.372 GB, free: 8.875 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.5155, allocations: 3.984 kB / 1.372 GB, free: 8.871 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.498e-05/0.5156, allocations: 11.95 kB / 1.372 GB, free: 8.859 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.5156, allocations: 8 kB / 1.372 GB, free: 8.852 MB / 0.8698 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 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.5157, allocations: 125.8 kB / 1.372 GB, free: 8.719 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.5158, allocations: 7.844 kB / 1.372 GB, free: 8.711 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003563/0.5161, allocations: 158.2 kB / 1.373 GB, free: 8.551 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.5161, allocations: 4 kB / 1.373 GB, free: 8.547 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5162, allocations: 0 / 1.373 GB, free: 8.547 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.5162, allocations: 4 kB / 1.373 GB, free: 8.543 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005676/0.5167, allocations: 422.2 kB / 1.373 GB, free: 8.074 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5168, allocations: 4 kB / 1.373 GB, free: 8.07 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.352e-05/0.5168, allocations: 11.98 kB / 1.373 GB, free: 8.059 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.5168, allocations: 4 kB / 1.373 GB, free: 8.055 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.5169, allocations: 4 kB / 1.373 GB, free: 8.051 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.5169, allocations: 0 / 1.373 GB, free: 8.051 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.5169, allocations: 3.953 kB / 1.373 GB, free: 8.047 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.5172, allocations: 247.4 kB / 1.373 GB, free: 7.789 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.311e-05/0.5173, allocations: 84.95 kB / 1.373 GB, free: 7.688 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.5173, allocations: 0 / 1.373 GB, free: 7.688 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.5174, allocations: 11.98 kB / 1.373 GB, free: 7.676 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.777e-05/0.5175, allocations: 11.98 kB / 1.373 GB, free: 7.664 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.5175, allocations: 8.203 kB / 1.373 GB, free: 7.656 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.58e-05/0.5176, allocations: 87.27 kB / 1.373 GB, free: 7.57 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5176, allocations: 4 kB / 1.373 GB, free: 7.566 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000252/0.5178, allocations: 20 kB / 1.373 GB, free: 7.547 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002205/0.518, allocations: 120.1 kB / 1.374 GB, free: 7.422 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003268/0.5184, allocations: 115.8 kB / 1.374 GB, free: 7.309 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.5184, allocations: 0 / 1.374 GB, free: 7.309 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.5185, allocations: 52.14 kB / 1.374 GB, free: 7.258 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001945/0.5187, allocations: 17.17 kB / 1.374 GB, free: 7.242 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003638/0.5191, allocations: 173.4 kB / 1.374 GB, free: 7.043 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.5194, allocations: 0.6887 MB / 1.375 GB, free: 6.328 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.615e-05/0.5194, allocations: 4.438 kB / 1.375 GB, free: 6.324 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.272e-05/0.5194, allocations: 15.42 kB / 1.375 GB, free: 6.309 MB / 0.8698 GB Notification: Performance of SimCode: time 2.2e-07/0.5195, allocations: 0 / 1.375 GB, free: 6.309 MB / 0.8698 GB Notification: Performance of Templates: time 0.003168/0.5226, allocations: 0.8549 MB / 1.375 GB, free: 5.457 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches