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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_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.0008473/0.0008473, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004986/0.004986, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.167/1.167, allocations: 223.3 MB / 240.3 MB, free: 5.328 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.229/2.229, allocations: 437.8 MB / 0.7121 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003162/0.0003162, allocations: 12 kB / 0.8729 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.479/0.4793, allocations: 153.8 MB / 1.023 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0007494/0.4801, allocations: 420.9 kB / 1.024 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001136/0.4813, allocations: 1.054 MB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.736e-05/0.4813, allocations: 3.938 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.519e-05/0.4813, allocations: 3.938 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.044e-05/0.4814, allocations: 7.984 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002261/0.4816, allocations: 43.89 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.65e-05/0.4817, allocations: 59.84 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.4818, allocations: 19.97 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.81e-05/0.4819, allocations: 23.92 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.779e-05/0.482, allocations: 35.83 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.404e-05/0.482, allocations: 4 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.284e-05/0.4821, allocations: 11.98 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.018e-05/0.4821, allocations: 15.92 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.826e-05/0.4822, allocations: 49.56 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.4823, allocations: 67.8 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4823, allocations: 7.938 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4823, allocations: 4 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.326e-06/0.4823, allocations: 0 / 1.025 GB, free: 13.95 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.0005568/0.4829, allocations: 381.6 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.4829, allocations: 8.031 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.339e-05/0.483, allocations: 34.75 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.834e-05/0.483, allocations: 8.938 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.4831, allocations: 176.2 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.4832, allocations: 8.359 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.4832, allocations: 4.375 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.4834, allocations: 86.22 kB / 1.026 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.996e-06/0.4834, allocations: 3.938 kB / 1.026 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.4834, allocations: 3.984 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.4834, allocations: 4 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.4836, allocations: 63.95 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000446/0.4841, allocations: 316.7 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.4843, allocations: 86.53 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.4844, allocations: 48.94 kB / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.4845, allocations: 11.94 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.4847, allocations: 95.48 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.4847, allocations: 0 / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004552/0.4851, allocations: 189.5 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.4852, allocations: 55.39 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.454e-05/0.4853, allocations: 106.2 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.4853, allocations: 33.7 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.208e-05/0.4853, allocations: 92.28 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/0.4854, allocations: 31.62 kB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.93e-05/0.4854, allocations: 25.66 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.661e-05/0.4855, allocations: 322.8 kB / 1.027 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.4856, allocations: 39.97 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.4858, allocations: 72.94 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.486, allocations: 114.5 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.486, allocations: 0 / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003127/0.4863, allocations: 145.5 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.4863, allocations: 4 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4864, allocations: 4 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.757e-06/0.4864, allocations: 4.062 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.4865, allocations: 23.98 kB / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.4865, allocations: 7.938 kB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.014e-05/0.4866, allocations: 15.89 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.4866, allocations: 4 kB / 1.027 GB, free: 11.11 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 (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 8.254e-05/0.4867, allocations: 126.3 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.341e-05/0.4867, allocations: 11.91 kB / 1.028 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003249/0.487, allocations: 153.9 kB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.487, allocations: 0 / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.4871, allocations: 0 / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.4871, allocations: 7.969 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.4875, allocations: 418.3 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.4875, allocations: 0 / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.994e-05/0.4876, allocations: 19.98 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.4876, allocations: 4 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-06/0.4876, allocations: 0 / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.4877, allocations: 3.938 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4877, allocations: 0 / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003195/0.488, allocations: 255.4 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.488, allocations: 85.11 kB / 1.028 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.488, allocations: 0 / 1.028 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.4882, allocations: 12.23 kB / 1.028 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.4882, allocations: 11.92 kB / 1.028 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.4882, allocations: 12 kB / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.182e-05/0.4882, allocations: 79.28 kB / 1.029 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.4883, allocations: 0 / 1.029 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002326/0.4885, allocations: 27.91 kB / 1.029 GB, free: 9.801 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 (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.0005807/0.4891, allocations: 0.7826 MB / 1.029 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002806/0.4894, allocations: 107.9 kB / 1.029 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4894, allocations: 0 / 1.029 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.4895, allocations: 64.02 kB / 1.03 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.4898, allocations: 9.656 kB / 1.03 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.4915, allocations: 1.544 MB / 1.031 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.4917, allocations: 0.6887 MB / 1.032 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.206e-05/0.4917, allocations: 4.438 kB / 1.032 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/0.4918, allocations: 27.3 kB / 1.032 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of SimCode: time 2.9e-07/0.4918, allocations: 0 / 1.032 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6591/1.151, allocations: 1.74 MB / 1.033 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002639/1.151, allocations: 211.6 kB / 1.034 GB, free: 4.582 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.935, allocations: 0 / 1.034 GB, free: 4.582 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > 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/jenkins1/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