Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_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.004745/0.004745, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001365/0.001365, allocations: 202.1 kB / 16.68 MB, free: 5.969 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.22/1.22, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.428/2.428, allocations: 469.8 MB / 0.7425 GB, free: 7.277 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 71.91 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2407, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001469/0.2422, allocations: 0.6814 MB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001103/0.2433, allocations: 1.055 MB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.265e-05/0.2433, allocations: 3.938 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.952e-05/0.2434, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.413e-05/0.2434, allocations: 7.875 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.2436, allocations: 47.89 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.636e-05/0.2437, allocations: 55.78 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.483e-05/0.2438, allocations: 7.984 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.359e-05/0.2439, allocations: 19.94 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.047e-05/0.2439, allocations: 27.89 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.2439, allocations: 4 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.307e-05/0.244, allocations: 15.98 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.761e-05/0.244, allocations: 11.98 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.156e-05/0.2441, allocations: 23.88 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.2442, allocations: 63.72 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2442, allocations: 0 / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.775e-06/0.2442, allocations: 3.984 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.388e-06/0.2442, allocations: 0 / 1.222 GB, free: 12.26 MB / 0.9825 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.0005007/0.2447, allocations: 371.3 kB / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.805e-05/0.2448, allocations: 8.031 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.853e-05/0.2448, allocations: 30.75 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.433e-05/0.2448, allocations: 8.938 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.2449, allocations: 176.3 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.2449, allocations: 4.375 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.245, allocations: 4.375 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001695/0.2451, allocations: 62.22 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.2452, allocations: 7.875 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.675e-06/0.2452, allocations: 4 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.2452, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001712/0.2453, allocations: 51.94 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.2457, allocations: 272.8 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.2459, allocations: 54.55 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.685e-05/0.246, allocations: 32.97 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.246, allocations: 7.938 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.2462, allocations: 79.33 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.2462, allocations: 0 / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.000357/0.2465, allocations: 125.6 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.2466, allocations: 51.41 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.536e-05/0.2467, allocations: 109.8 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.2467, allocations: 25.7 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.2467, allocations: 92.08 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.2468, allocations: 27.78 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-05/0.2468, allocations: 17.72 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.2469, allocations: 326.8 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.059e-05/0.247, allocations: 19.98 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.2471, allocations: 64.27 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.2473, allocations: 100.2 kB / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2474, allocations: 256 / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002518/0.2476, allocations: 113.5 kB / 1.224 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.2476, allocations: 4 kB / 1.224 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2476, allocations: 4 kB / 1.224 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.2477, allocations: 4 kB / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.259e-05/0.2478, allocations: 28.05 kB / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.331e-06/0.2478, allocations: 4 kB / 1.224 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.029e-05/0.2478, allocations: 7.984 kB / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.2479, allocations: 4 kB / 1.224 GB, free: 9.738 MB / 0.9825 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.689e-05/0.2479, allocations: 124.2 kB / 1.224 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.248, allocations: 3.953 kB / 1.224 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002628/0.2482, allocations: 114 kB / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2482, allocations: 0 / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.2482, allocations: 0 / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.2482, allocations: 0 / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004074/0.2487, allocations: 366.4 kB / 1.225 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2487, allocations: 0 / 1.225 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.814e-05/0.2487, allocations: 11.98 kB / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2487, allocations: 0 / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.2488, allocations: 8 kB / 1.225 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.2488, allocations: 0 / 1.225 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2488, allocations: 0 / 1.225 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.249, allocations: 207.3 kB / 1.225 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.488e-05/0.2491, allocations: 77.11 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.2491, allocations: 4 kB / 1.225 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.874e-05/0.2492, allocations: 12.17 kB / 1.225 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.504e-05/0.2492, allocations: 7.922 kB / 1.225 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.2492, allocations: 11.94 kB / 1.225 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.786e-05/0.2493, allocations: 79.28 kB / 1.225 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2493, allocations: 0 / 1.225 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002103/0.2495, allocations: 16 kB / 1.225 GB, free: 8.605 MB / 0.9825 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.0005282/0.25, allocations: 0.7368 MB / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000224/0.2503, allocations: 71.95 kB / 1.226 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.2503, allocations: 4 kB / 1.226 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.2504, allocations: 32.22 kB / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.2506, allocations: 17.31 kB / 1.226 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.252, allocations: 1.428 MB / 1.228 GB, free: 6.195 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.2523, allocations: 0.6807 MB / 1.228 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.565e-05/0.2523, allocations: 4.188 kB / 1.228 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.165e-05/0.2523, allocations: 19.42 kB / 1.228 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.2523, allocations: 4 kB / 1.228 GB, free: 5.465 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.988/8.24, allocations: 1.82 MB / 1.23 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.592/16.83, allocations: 3.938 kB / 1.23 GB, free: 3.754 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches