Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.422/1.422, allocations: 249.3 MB / 261.8 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001116/0.001116, allocations: 174.7 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.2 MB / 0.572 GB, free: 10.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008358/0.0008359, allocations: 90.41 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.23e-05/3.233e-05, allocations: 4 kB / 0.788 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2125, allocations: 106.3 MB / 0.8918 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6975/0.9101, allocations: 131.8 MB / 1.02 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.9104, allocations: 78.81 kB / 1.021 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002553/0.913, allocations: 0.955 MB / 1.021 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.362e-06/0.913, allocations: 0 / 1.021 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.913, allocations: 0 / 1.021 GB, free: 1.98 MB / 0.6355 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.000456/0.9135, allocations: 366.1 kB / 1.022 GB, free: 1.582 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.9135, allocations: 8.031 kB / 1.022 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/0.9136, allocations: 7.906 kB / 1.022 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.9137, allocations: 167 kB / 1.022 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.9138, allocations: 15.3 kB / 1.022 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.9138, allocations: 8 kB / 1.022 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.9139, allocations: 66.98 kB / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.9139, allocations: 2.734 kB / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.914, allocations: 0 / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.914, allocations: 0 / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.398e-05/0.914, allocations: 32.75 kB / 1.022 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005292/0.9146, allocations: 334.8 kB / 1.022 GB, free: 0.9102 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.9147, allocations: 68.08 kB / 1.023 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.948e-05/0.9148, allocations: 35.11 kB / 1.023 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.9148, allocations: 4 kB / 1.023 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/0.9149, allocations: 77.83 kB / 1.023 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.9149, allocations: 0 / 1.023 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002191/0.9152, allocations: 111.6 kB / 1.023 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.9152, allocations: 55.41 kB / 1.023 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.638e-05/0.9153, allocations: 108.4 kB / 1.023 GB, free: 484 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.9153, allocations: 37.45 kB / 1.023 GB, free: 444 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.295e-05/0.9154, allocations: 84.12 kB / 1.023 GB, free: 356 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.9154, allocations: 23.14 kB / 1.023 GB, free: 336 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.9154, allocations: 3.812 kB / 1.023 GB, free: 336 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.91e-05/0.9155, allocations: 329 kB / 1.023 GB, free: 4 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.772e-05/0.9156, allocations: 23.55 kB / 1.023 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.874e-05/0.9156, allocations: 55.2 kB / 1.023 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.639e-05/0.9157, allocations: 27.12 kB / 1.023 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.9157, allocations: 4 kB / 1.023 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001664/0.9159, allocations: 114.9 kB / 1.024 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.9159, allocations: 9.094 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.9159, allocations: 3.938 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.9159, allocations: 4 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.9161, allocations: 19.98 kB / 1.024 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.9161, allocations: 0 / 1.024 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.489e-05/0.9162, allocations: 19.39 kB / 1.024 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.9162, allocations: 7.953 kB / 1.024 GB, free: 15.75 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 () * 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 7.341e-05/0.9163, allocations: 123.2 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.225e-05/0.9163, allocations: 3.906 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001993/0.9165, allocations: 127.2 kB / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.9165, allocations: 0 / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.9165, allocations: 0 / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.9165, allocations: 0 / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003567/0.9169, allocations: 394.9 kB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.9169, allocations: 0 / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.768e-05/0.917, allocations: 11.98 kB / 1.024 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.917, allocations: 4 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.917, allocations: 3.938 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.917, allocations: 0 / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.917, allocations: 0 / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001938/0.9172, allocations: 213.7 kB / 1.024 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.9173, allocations: 84.95 kB / 1.025 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.9173, allocations: 7.984 kB / 1.025 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.9174, allocations: 14.8 kB / 1.025 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.22e-05/0.9174, allocations: 0 / 1.025 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.9175, allocations: 7.984 kB / 1.025 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.868e-05/0.9175, allocations: 87.11 kB / 1.025 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9175, allocations: 4 kB / 1.025 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002133/0.9177, allocations: 19.88 kB / 1.025 GB, free: 14.66 MB / 0.6511 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) * 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.0001331/0.9179, allocations: 100.2 kB / 1.025 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001613/0.918, allocations: 73.36 kB / 1.025 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.9181, allocations: 0 / 1.025 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.909e-05/0.9181, allocations: 39.03 kB / 1.025 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000179/0.9183, allocations: 11.69 kB / 1.025 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002754/0.9186, allocations: 104.3 kB / 1.025 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.9189, allocations: 0.6926 MB / 1.026 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.634e-05/0.9189, allocations: 8.422 kB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.919, allocations: 14.88 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of SimCode: time 4.11e-07/0.919, allocations: 0 / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of Templates: time 0.002678/0.9217, allocations: 0.753 MB / 1.026 GB, free: 12.88 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches