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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.007786/0.007786, allocations: 103.2 kB / 15.74 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.002189/0.002189, allocations: 196.6 kB / 16.68 MB, free: 5.965 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.223/1.223, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.409/2.409, allocations: 482.6 MB / 0.755 GB, free: 6.656 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 65.42 kB / 1.083 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.263, allocations: 162.3 MB / 1.242 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001553/0.2646, allocations: 0.6658 MB / 1.242 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2658, allocations: 1.063 MB / 1.244 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.145e-05/0.2659, allocations: 3.938 kB / 1.244 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.243e-05/0.2659, allocations: 4 kB / 1.244 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.047e-05/0.266, allocations: 11.86 kB / 1.244 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002217/0.2662, allocations: 39.89 kB / 1.244 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.988e-05/0.2663, allocations: 43.86 kB / 1.244 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.813e-05/0.2664, allocations: 19.97 kB / 1.244 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.958e-05/0.2664, allocations: 31.91 kB / 1.244 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.477e-05/0.2665, allocations: 15.92 kB / 1.244 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.453e-05/0.2665, allocations: 4 kB / 1.244 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.537e-05/0.2666, allocations: 23.92 kB / 1.244 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.02e-05/0.2666, allocations: 11.98 kB / 1.244 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.166e-05/0.2666, allocations: 19.88 kB / 1.244 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.2668, allocations: 63.98 kB / 1.244 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2668, allocations: 0 / 1.244 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2668, allocations: 0 / 1.244 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.356e-06/0.2668, allocations: 0 / 1.244 GB, free: 6.852 MB / 0.9669 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.0005207/0.2673, allocations: 371.3 kB / 1.244 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.2674, allocations: 12.03 kB / 1.244 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.93e-05/0.2674, allocations: 38.73 kB / 1.244 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.338e-05/0.2674, allocations: 4.938 kB / 1.244 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.2675, allocations: 168.3 kB / 1.244 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.2676, allocations: 4.375 kB / 1.244 GB, free: 6.168 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.2676, allocations: 4.375 kB / 1.244 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.2678, allocations: 70.22 kB / 1.244 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.2678, allocations: 7.875 kB / 1.244 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.2678, allocations: 4 kB / 1.244 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-06/0.2678, allocations: 3.938 kB / 1.244 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.268, allocations: 39.95 kB / 1.245 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003895/0.2684, allocations: 284.8 kB / 1.245 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.2685, allocations: 58.55 kB / 1.245 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.718e-05/0.2686, allocations: 32.91 kB / 1.245 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.2687, allocations: 7.922 kB / 1.245 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001689/0.2688, allocations: 67.39 kB / 1.245 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.2689, allocations: 4 kB / 1.245 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003895/0.2693, allocations: 133.6 kB / 1.245 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.2693, allocations: 55.39 kB / 1.245 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.781e-05/0.2694, allocations: 101.9 kB / 1.245 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.2694, allocations: 25.7 kB / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.483e-05/0.2695, allocations: 92.06 kB / 1.245 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.2695, allocations: 19.86 kB / 1.245 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.662e-05/0.2695, allocations: 33.7 kB / 1.245 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.2697, allocations: 314.8 kB / 1.246 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.895e-05/0.2698, allocations: 31.97 kB / 1.246 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.2699, allocations: 52.27 kB / 1.246 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000201/0.2701, allocations: 92.2 kB / 1.246 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2701, allocations: 0 / 1.246 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002672/0.2704, allocations: 117.5 kB / 1.246 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.2704, allocations: 10.19 kB / 1.246 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.2704, allocations: 0 / 1.246 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2704, allocations: 7.984 kB / 1.246 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.349e-05/0.2705, allocations: 15.98 kB / 1.246 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.2705, allocations: 0 / 1.246 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.477e-05/0.2706, allocations: 11.95 kB / 1.246 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.2706, allocations: 4 kB / 1.246 GB, free: 4.332 MB / 0.9669 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 9.002e-05/0.2707, allocations: 137 kB / 1.246 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.185e-05/0.2707, allocations: 4 kB / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002667/0.271, allocations: 106 kB / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.271, allocations: 48 / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.271, allocations: 7.984 kB / 1.246 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.271, allocations: 0 / 1.246 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004515/0.2715, allocations: 362.4 kB / 1.247 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2715, allocations: 0 / 1.247 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.05e-05/0.2716, allocations: 12.17 kB / 1.247 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.2716, allocations: 256 / 1.247 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.2716, allocations: 7.938 kB / 1.247 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2716, allocations: 7.938 kB / 1.247 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2716, allocations: 480 / 1.247 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.2719, allocations: 207.3 kB / 1.247 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.571e-05/0.2719, allocations: 85.06 kB / 1.247 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.272, allocations: 7.984 kB / 1.247 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.006e-05/0.2721, allocations: 4 kB / 1.247 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.191e-05/0.2721, allocations: 11.92 kB / 1.247 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.2721, allocations: 4 kB / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.295e-05/0.2722, allocations: 83.28 kB / 1.247 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2722, allocations: 4 kB / 1.247 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002192/0.2724, allocations: 15.98 kB / 1.247 GB, free: 3.184 MB / 0.9669 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.0005699/0.273, allocations: 0.7324 MB / 1.248 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002442/0.2732, allocations: 71.88 kB / 1.248 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2732, allocations: 0 / 1.248 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.2733, allocations: 35.97 kB / 1.248 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.2736, allocations: 7.938 kB / 1.248 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.275, allocations: 1.426 MB / 1.249 GB, free: 0.7852 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.2753, allocations: 0.6846 MB / 1.25 GB, free: 76 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.689e-05/0.2754, allocations: 3.984 kB / 1.25 GB, free: 72 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.2754, allocations: 15.44 kB / 1.25 GB, free: 56 kB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.2754, allocations: 0 / 1.25 GB, free: 56 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.41/1.685, allocations: 1.81 MB / 1.252 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.791/10.48, allocations: 15.19 kB / 1.252 GB, free: 14.34 MB / 0.9825 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=400 --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