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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005919/0.005919, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.00132/0.00132, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.373/2.373, allocations: 390.3 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 62.38 kB / 0.9504 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3318, allocations: 140.4 MB / 1.087 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00197/0.3338, allocations: 0.6841 MB / 1.088 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3353, allocations: 1.075 MB / 1.089 GB, free: 244 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.623e-05/0.3353, allocations: 3.938 kB / 1.089 GB, free: 240 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.555e-05/0.3354, allocations: 7.922 kB / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.318e-05/0.3355, allocations: 3.938 kB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.3358, allocations: 55.83 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.336, allocations: 63.83 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.871e-05/0.3361, allocations: 12 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.217e-05/0.3362, allocations: 27.91 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.739e-05/0.3362, allocations: 35.84 kB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.3363, allocations: 4 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.197e-05/0.3363, allocations: 19.98 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.128e-05/0.3364, allocations: 16.06 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.58e-05/0.3364, allocations: 35.77 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.3366, allocations: 71.75 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3366, allocations: 0 / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.562e-06/0.3366, allocations: 0 / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.3367, allocations: 0 / 1.09 GB, free: 15.89 MB / 0.8575 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.0006271/0.3373, allocations: 382.8 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3373, allocations: 8.031 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.316e-05/0.3374, allocations: 34.75 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.018e-05/0.3374, allocations: 12.84 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.3376, allocations: 168.5 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.3376, allocations: 12.36 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.3376, allocations: 4.375 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.3378, allocations: 78.22 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.3379, allocations: 3.938 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.3379, allocations: 7.984 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.3379, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.3381, allocations: 59.83 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000523/0.3386, allocations: 308.7 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.3388, allocations: 82.53 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.339, allocations: 40.83 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.339, allocations: 4 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.3392, allocations: 99.47 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 2.063e-06/0.3392, allocations: 0 / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0004934/0.3397, allocations: 173.4 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.3398, allocations: 67.39 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.255e-05/0.3399, allocations: 105.8 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.3399, allocations: 29.7 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.048e-05/0.34, allocations: 88.31 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.34, allocations: 27.7 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-05/0.3401, allocations: 29.72 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3402, allocations: 322.8 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.3403, allocations: 39.97 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.3405, allocations: 58.55 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.3407, allocations: 106.5 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3407, allocations: 0 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003206/0.3411, allocations: 145.5 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3411, allocations: 5.562 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3411, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.3411, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.3412, allocations: 20.17 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.3413, allocations: 7.984 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.594e-05/0.3413, allocations: 19.84 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.3414, allocations: 8.062 kB / 1.092 GB, free: 13.12 MB / 0.8575 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.0001047/0.3415, allocations: 138.3 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.3415, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003439/0.3418, allocations: 145.9 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.3419, allocations: 0 / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3419, allocations: 0 / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3419, allocations: 0 / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005172/0.3424, allocations: 414.8 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.3424, allocations: 96 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.847e-05/0.3425, allocations: 19.86 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3425, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.3425, allocations: 4 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.3425, allocations: 0 / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3425, allocations: 0 / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000349/0.3429, allocations: 239.4 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.3429, allocations: 88.89 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.343, allocations: 8 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3431, allocations: 7.984 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.3431, allocations: 11.92 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.3431, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.442e-05/0.3432, allocations: 91.28 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.8e-07/0.3432, allocations: 0 / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002565/0.3435, allocations: 23.98 kB / 1.093 GB, free: 11.85 MB / 0.8575 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.00067/0.3441, allocations: 0.767 MB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000303/0.3445, allocations: 99.88 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3445, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.3446, allocations: 51.91 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.3449, allocations: 14.64 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.3466, allocations: 1.496 MB / 1.095 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.3469, allocations: 0.6889 MB / 1.096 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.134e-05/0.347, allocations: 12.42 kB / 1.096 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.432e-05/0.347, allocations: 15.44 kB / 1.096 GB, free: 8.566 MB / 0.8575 GB Notification: Performance of SimCode: time 5.72e-07/0.347, allocations: 4 kB / 1.096 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.3664, allocations: 2.089 MB / 1.098 GB, free: 6.574 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.551/7.917, allocations: 7.875 kB / 1.098 GB, free: 6.566 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches