Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_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.001191/0.001191, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 191.7 kB / 16.53 MB, free: 6.391 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.188/1.188, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.411/2.411, allocations: 461.9 MB / 0.7347 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 58.56 kB / 0.8992 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2462, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001844/0.2481, allocations: 0.6872 MB / 1.054 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001167/0.2492, allocations: 1.084 MB / 1.055 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.622e-05/0.2493, allocations: 4 kB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.647e-05/0.2493, allocations: 3.938 kB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.067e-05/0.2494, allocations: 7.922 kB / 1.055 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.2497, allocations: 43.83 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.078e-05/0.2497, allocations: 67.89 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.259e-05/0.2498, allocations: 8 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.508e-05/0.2499, allocations: 27.86 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.929e-05/0.25, allocations: 47.83 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.25, allocations: 4 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.328e-05/0.2501, allocations: 19.98 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.833e-05/0.2501, allocations: 15.92 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.038e-05/0.2501, allocations: 35.84 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.2502, allocations: 75.75 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2503, allocations: 0 / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2503, allocations: 0 / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.2503, allocations: 0 / 1.055 GB, free: 6.105 MB / 0.8106 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.0005321/0.2508, allocations: 379.7 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.2508, allocations: 8.625 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.682e-05/0.2509, allocations: 42.73 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.096e-05/0.2509, allocations: 8.844 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.367e-05/0.251, allocations: 164.3 kB / 1.056 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.251, allocations: 8.312 kB / 1.056 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.2511, allocations: 12.36 kB / 1.056 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002012/0.2513, allocations: 78.22 kB / 1.056 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.2513, allocations: 7.938 kB / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.2513, allocations: 0 / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.2513, allocations: 0 / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.2515, allocations: 55.94 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000428/0.2519, allocations: 316.6 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.2521, allocations: 82.47 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001179/0.2523, allocations: 44.83 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.2523, allocations: 0 / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.2525, allocations: 87.5 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.183e-06/0.2525, allocations: 4 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004514/0.253, allocations: 173.5 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.253, allocations: 59.39 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.873e-05/0.2531, allocations: 106.2 kB / 1.057 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.2531, allocations: 29.69 kB / 1.057 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.699e-05/0.2531, allocations: 88.38 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.2532, allocations: 31.64 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.551e-05/0.2532, allocations: 33.64 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.049e-05/0.2533, allocations: 326.8 kB / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.2534, allocations: 35.97 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.2536, allocations: 60.8 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.2538, allocations: 110.4 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2538, allocations: 0 / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002992/0.2541, allocations: 145.8 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.2541, allocations: 4 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.2542, allocations: 4.062 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.2542, allocations: 8 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.2543, allocations: 15.98 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2543, allocations: 4 kB / 1.057 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.005e-05/0.2544, allocations: 15.92 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.2544, allocations: 4 kB / 1.057 GB, free: 3.348 MB / 0.8106 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.068e-05/0.2545, allocations: 125.7 kB / 1.058 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.538e-05/0.2545, allocations: 7.906 kB / 1.058 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003096/0.2548, allocations: 149.9 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2548, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2548, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.2548, allocations: 3.984 kB / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004633/0.2553, allocations: 410.3 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2553, allocations: 0 / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.473e-05/0.2554, allocations: 15.98 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2554, allocations: 0 / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.597e-06/0.2554, allocations: 0 / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.2554, allocations: 0 / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2554, allocations: 0 / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000319/0.2557, allocations: 243.5 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.2558, allocations: 88.95 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.2558, allocations: 4 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.2559, allocations: 11.98 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.195e-05/0.256, allocations: 15.86 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.256, allocations: 0 / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.83e-05/0.256, allocations: 87.28 kB / 1.059 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.323e-06/0.256, allocations: 0 / 1.059 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002377/0.2563, allocations: 15.94 kB / 1.059 GB, free: 2.086 MB / 0.8106 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.0005774/0.2568, allocations: 0.7843 MB / 1.059 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002792/0.2571, allocations: 99.88 kB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2571, allocations: 4.125 kB / 1.059 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.2573, allocations: 47.91 kB / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.2575, allocations: 11.94 kB / 1.059 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.2591, allocations: 1.483 MB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.2593, allocations: 0.6884 MB / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.148e-05/0.2593, allocations: 12.36 kB / 1.062 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.089e-05/0.2594, allocations: 23.44 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2594, allocations: 4 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9217/1.181, allocations: 2.03 MB / 1.064 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.96/9.141, allocations: 5.859 kB / 1.064 GB, free: 12.86 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches