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.00121/0.00121, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001267/0.001267, allocations: 197.8 kB / 16.14 MB, free: 6.711 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.2/1.2, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.466/2.466, allocations: 461.9 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 62.06 kB / 0.8985 GB, free: 37.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.245, allocations: 157.4 MB / 1.052 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001897/0.247, allocations: 0.7326 MB / 1.053 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.2482, allocations: 1.073 MB / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.775e-05/0.2483, allocations: 0 / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.361e-05/0.2483, allocations: 4 kB / 1.054 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.784e-05/0.2484, allocations: 7.938 kB / 1.054 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.2486, allocations: 39.89 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.356e-05/0.2487, allocations: 43.91 kB / 1.054 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.822e-05/0.2488, allocations: 8 kB / 1.054 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.069e-05/0.2489, allocations: 19.92 kB / 1.054 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.055e-05/0.2489, allocations: 23.91 kB / 1.054 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.249, allocations: 3.938 kB / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.249e-05/0.249, allocations: 19.98 kB / 1.054 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.002e-05/0.2491, allocations: 15.92 kB / 1.054 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.515e-05/0.2491, allocations: 15.94 kB / 1.054 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.2492, allocations: 59.7 kB / 1.054 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.2492, allocations: 0 / 1.054 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.01e-07/0.2492, allocations: 0 / 1.054 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.2492, allocations: 0 / 1.054 GB, free: 6.168 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.000528/0.2498, allocations: 367.7 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2498, allocations: 15.97 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.455e-05/0.2499, allocations: 38.73 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.891e-05/0.2499, allocations: 4.938 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.875e-05/0.25, allocations: 172.2 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.25, allocations: 384 / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.25, allocations: 4.375 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.2502, allocations: 70.14 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.2502, allocations: 3.938 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.2502, allocations: 8 kB / 1.055 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2503, allocations: 4 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.2505, allocations: 39.95 kB / 1.055 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003883/0.2508, allocations: 272.8 kB / 1.055 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.251, allocations: 62.48 kB / 1.055 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.304e-05/0.2511, allocations: 32.97 kB / 1.055 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.2511, allocations: 3.984 kB / 1.055 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000193/0.2513, allocations: 71.39 kB / 1.055 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.2514, allocations: 0 / 1.055 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003972/0.2518, allocations: 133.5 kB / 1.055 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.2518, allocations: 59.39 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.468e-05/0.2519, allocations: 102 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.2519, allocations: 29.7 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.2519, allocations: 84.12 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.252, allocations: 23.66 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.35e-05/0.252, allocations: 25.7 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.714e-05/0.2521, allocations: 322.8 kB / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.997e-05/0.2522, allocations: 23.97 kB / 1.056 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.2523, allocations: 64.33 kB / 1.056 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002033/0.2525, allocations: 100.1 kB / 1.056 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2525, allocations: 0 / 1.056 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002616/0.2528, allocations: 113.5 kB / 1.056 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.2528, allocations: 8.125 kB / 1.056 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2528, allocations: 8.172 kB / 1.056 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.2529, allocations: 0 / 1.056 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.253, allocations: 23.86 kB / 1.056 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.253, allocations: 4.312 kB / 1.056 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.668e-05/0.2531, allocations: 8 kB / 1.056 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.2531, allocations: 4 kB / 1.056 GB, free: 3.641 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 7.427e-05/0.2531, allocations: 123.3 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.2532, allocations: 3.906 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002688/0.2534, allocations: 117.9 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.2535, allocations: 0 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2535, allocations: 0 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2535, allocations: 0 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003895/0.2539, allocations: 354.5 kB / 1.057 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2539, allocations: 4 kB / 1.057 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.159e-05/0.2539, allocations: 11.98 kB / 1.057 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2539, allocations: 3.938 kB / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.254, allocations: 4 kB / 1.057 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.254, allocations: 0 / 1.057 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.254, allocations: 0 / 1.057 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/0.2542, allocations: 207.3 kB / 1.057 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.376e-05/0.2543, allocations: 77.11 kB / 1.057 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.2543, allocations: 7.984 kB / 1.057 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.841e-05/0.2544, allocations: 8 kB / 1.057 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.275e-05/0.2545, allocations: 11.92 kB / 1.057 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.2545, allocations: 0 / 1.057 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.786e-05/0.2545, allocations: 91.27 kB / 1.057 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2545, allocations: 0 / 1.057 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002339/0.2548, allocations: 19.84 kB / 1.057 GB, free: 2.512 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: 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.0005088/0.2553, allocations: 0.7319 MB / 1.058 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002348/0.2555, allocations: 68.08 kB / 1.058 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2555, allocations: 4.062 kB / 1.058 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.2556, allocations: 47.89 kB / 1.058 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.2559, allocations: 13.89 kB / 1.058 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.2573, allocations: 1.429 MB / 1.06 GB, free: 92 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.2576, allocations: 0.6809 MB / 1.06 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.052e-05/0.2576, allocations: 4 kB / 1.06 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.62e-05/0.2576, allocations: 19.42 kB / 1.06 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2576, allocations: 0 / 1.06 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1858/0.4435, allocations: 1.591 MB / 1.062 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.4437, allocations: 212.2 kB / 1.062 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.145, allocations: 1.75 kB / 1.062 GB, free: 13.64 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