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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001124/0.001124, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001398/0.001398, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.843/2.843, allocations: 437.7 MB / 0.7117 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003627, allocations: 8 kB / 0.8722 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8229/0.8233, allocations: 153.8 MB / 1.022 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00113/0.8245, allocations: 404.9 kB / 1.023 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001883/0.8264, allocations: 1.054 MB / 1.024 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.78e-05/0.8265, allocations: 0 / 1.024 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.894e-05/0.8265, allocations: 0 / 1.024 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.716e-05/0.8266, allocations: 7.938 kB / 1.024 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.8269, allocations: 39.89 kB / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.8271, allocations: 59.84 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.8272, allocations: 11.97 kB / 1.024 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.632e-05/0.8273, allocations: 27.91 kB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.667e-05/0.8274, allocations: 31.91 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.034e-05/0.8274, allocations: 0 / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.94e-05/0.8275, allocations: 19.98 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.273e-05/0.8275, allocations: 7.984 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.517e-05/0.8276, allocations: 41.64 kB / 1.024 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.8278, allocations: 47.88 kB / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.8278, allocations: 0 / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.144e-06/0.8278, allocations: 3.938 kB / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.8278, allocations: 0 / 1.024 GB, free: 14.42 MB / 0.7794 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.0007814/0.8286, allocations: 381 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.8287, allocations: 12.03 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.354e-05/0.8287, allocations: 4 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001674/0.8289, allocations: 167 kB / 1.025 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.678e-05/0.829, allocations: 8 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.829, allocations: 4 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.8293, allocations: 101.5 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.8294, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.8294, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.8294, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.8297, allocations: 67.95 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007413/0.8305, allocations: 312.7 kB / 1.025 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.8308, allocations: 98.47 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.831, allocations: 44.83 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.394e-05/0.8311, allocations: 0 / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003838/0.8315, allocations: 99.36 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 2.024e-06/0.8315, allocations: 192 / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0007859/0.8323, allocations: 189.5 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.195e-05/0.8324, allocations: 63.45 kB / 1.026 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.8325, allocations: 109.8 kB / 1.026 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.8326, allocations: 29.7 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.8327, allocations: 84.38 kB / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.394e-05/0.8328, allocations: 27.64 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.14e-05/0.8328, allocations: 4 kB / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002131/0.833, allocations: 315.2 kB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.8332, allocations: 43.97 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.8334, allocations: 70.53 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.8336, allocations: 51.94 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.8337, allocations: 3.938 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004677/0.8341, allocations: 145.5 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.22e-05/0.8342, allocations: 8.062 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.8342, allocations: 7.938 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.8342, allocations: 0 / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.8345, allocations: 27.92 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.8345, allocations: 4 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.8346, allocations: 15.89 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.8346, allocations: 8 kB / 1.027 GB, free: 11.73 MB / 0.7794 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.0001483/0.8348, allocations: 125.8 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.112e-05/0.8348, allocations: 7.984 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005004/0.8353, allocations: 157.8 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.8353, allocations: 0 / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.8354, allocations: 4 kB / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.8354, allocations: 0 / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007517/0.8361, allocations: 426.5 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.8362, allocations: 4 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.374e-05/0.8363, allocations: 15.98 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.8363, allocations: 4 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.8363, allocations: 0 / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.8363, allocations: 0 / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.8363, allocations: 0 / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004871/0.8368, allocations: 255.5 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.141e-05/0.8369, allocations: 77.11 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.8369, allocations: 4.094 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.8371, allocations: 15.92 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.235e-05/0.8372, allocations: 11.98 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.8372, allocations: 0 / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.144e-05/0.8372, allocations: 83.28 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8373, allocations: 0 / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004352/0.8377, allocations: 27.98 kB / 1.028 GB, free: 10.43 MB / 0.7794 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.0002281/0.8379, allocations: 105 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004497/0.8384, allocations: 111.8 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.8384, allocations: 0 / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001919/0.8386, allocations: 55.91 kB / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004644/0.8391, allocations: 15.94 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005705/0.8397, allocations: 185.4 kB / 1.028 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.8401, allocations: 0.6848 MB / 1.029 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.888e-05/0.8402, allocations: 8.422 kB / 1.029 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.331e-05/0.8402, allocations: 11.44 kB / 1.029 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of SimCode: time 4.4e-07/0.8402, allocations: 0 / 1.029 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of Templates: time 0.005136/0.8454, allocations: 0.8851 MB / 1.03 GB, free: 8.32 MB / 0.7794 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