Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",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.0009093/0.0009094, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.007589/0.007589, allocations: 175.8 kB / 16.27 MB, free: 6.613 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.345/1.345, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.526/2.526, allocations: 462.6 MB / 0.7364 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003074, allocations: 8 kB / 0.9029 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2705, allocations: 159.6 MB / 1.059 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.0005975/0.2712, allocations: 415.1 kB / 1.059 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00097/0.2721, allocations: 1.057 MB / 1.06 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.039e-05/0.2722, allocations: 0 / 1.06 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.875e-06/0.2722, allocations: 3.938 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.302e-05/0.2722, allocations: 7.938 kB / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001284/0.2724, allocations: 35.89 kB / 1.06 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.102e-05/0.2724, allocations: 47.92 kB / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.266e-05/0.2725, allocations: 7.984 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.347e-05/0.2725, allocations: 15.94 kB / 1.06 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.554e-05/0.2725, allocations: 27.89 kB / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.364e-06/0.2726, allocations: 0 / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.928e-05/0.2726, allocations: 19.92 kB / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.158e-05/0.2726, allocations: 4 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.2727, allocations: 45.56 kB / 1.06 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.112e-05/0.2727, allocations: 55.83 kB / 1.06 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.2727, allocations: 4 kB / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.81e-07/0.2727, allocations: 0 / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.204e-06/0.2727, allocations: 0 / 1.06 GB, free: 3.172 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003616/0.2731, allocations: 363.7 kB / 1.061 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.809e-05/0.2731, allocations: 11.97 kB / 1.061 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.338e-05/0.2732, allocations: 46.69 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.538e-05/0.2732, allocations: 4.875 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.317e-05/0.2733, allocations: 176.2 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.54e-06/0.2733, allocations: 384 / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-06/0.2733, allocations: 4.375 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.2735, allocations: 82.14 kB / 1.061 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.719e-06/0.2735, allocations: 3.938 kB / 1.061 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-06/0.2735, allocations: 8 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.2735, allocations: 4 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.2737, allocations: 47.95 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002914/0.274, allocations: 284.8 kB / 1.061 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.2741, allocations: 62.48 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.301e-05/0.2742, allocations: 32.97 kB / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/0.2742, allocations: 4 kB / 1.062 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.2744, allocations: 79.38 kB / 1.062 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.2744, allocations: 0 / 1.062 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.00035/0.2748, allocations: 149.8 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/0.2748, allocations: 55.34 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.386e-05/0.2749, allocations: 105.8 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.2749, allocations: 25.7 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.739e-05/0.2749, allocations: 84.14 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.275, allocations: 23.73 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/0.275, allocations: 17.72 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.813e-05/0.2751, allocations: 318.8 kB / 1.062 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.616e-05/0.2752, allocations: 31.97 kB / 1.062 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.2753, allocations: 68.52 kB / 1.062 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002035/0.2755, allocations: 108.2 kB / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2755, allocations: 0 / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002608/0.2758, allocations: 129.5 kB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.2758, allocations: 6.031 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.2758, allocations: 80 / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.706e-06/0.2758, allocations: 8 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.257e-05/0.2759, allocations: 23.98 kB / 1.063 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.2759, allocations: 7.922 kB / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.598e-05/0.276, allocations: 11.98 kB / 1.063 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.098e-06/0.276, allocations: 8 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 6.344e-05/0.2761, allocations: 121.7 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.109e-05/0.2761, allocations: 4.094 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002559/0.2763, allocations: 122 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2764, allocations: 3.938 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.2764, allocations: 0 / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2764, allocations: 7.984 kB / 1.063 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003879/0.2768, allocations: 362.5 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2768, allocations: 4 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.328e-05/0.2768, allocations: 19.98 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2769, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.26e-06/0.2769, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.2769, allocations: 3.938 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2769, allocations: 0 / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002584/0.2771, allocations: 219.3 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.2772, allocations: 77.11 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.2772, allocations: 4 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.248e-05/0.2773, allocations: 11.98 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.2773, allocations: 7.938 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.2773, allocations: 4 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.456e-05/0.2774, allocations: 87.27 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2774, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002222/0.2776, allocations: 19.94 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0004779/0.2781, allocations: 0.7397 MB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002203/0.2783, allocations: 91.86 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.2783, allocations: 0 / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.2784, allocations: 31.98 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.2787, allocations: 18.59 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.2799, allocations: 1.456 MB / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.2801, allocations: 0.6887 MB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.46e-05/0.2801, allocations: 4 kB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.773e-05/0.2802, allocations: 15.44 kB / 1.067 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2802, allocations: 0 / 1.067 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.208/1.488, allocations: 1.539 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/1.489, allocations: 215.5 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/3.19, allocations: 3.578 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches