Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Examples.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_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.00118/0.00118, 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.001181/0.001181, allocations: 193.4 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.188/1.188, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.22/2.22, allocations: 437 MB / 0.7099 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 59.91 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4414/0.4426, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001523/0.4441, allocations: 0.7343 MB / 1.017 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009912/0.4451, allocations: 1.062 MB / 1.018 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.656e-05/0.4452, allocations: 0 / 1.018 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.604e-05/0.4452, allocations: 3.938 kB / 1.018 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.575e-05/0.4452, allocations: 0 / 1.018 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.4454, allocations: 43.89 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.444e-05/0.4455, allocations: 43.86 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.005e-05/0.4456, allocations: 15.98 kB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.023e-05/0.4456, allocations: 19.92 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.969e-05/0.4457, allocations: 19.91 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.186e-05/0.4457, allocations: 4 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.445e-05/0.4457, allocations: 15.98 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.678e-05/0.4458, allocations: 11.92 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.847e-05/0.4458, allocations: 15.94 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.983e-05/0.4459, allocations: 63.77 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.4459, allocations: 0 / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of FrontEnd: time 7.22e-07/0.4459, allocations: 0 / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.896e-06/0.4459, allocations: 4 kB / 1.019 GB, free: 0.7227 MB / 0.7637 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.0004611/0.4464, allocations: 369.6 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.4464, allocations: 12.03 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.862e-05/0.4465, allocations: 38.73 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.455e-05/0.4465, allocations: 4.938 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.329e-05/0.4466, allocations: 168.2 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.584e-06/0.4466, allocations: 4.375 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.4466, allocations: 4.375 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.4468, allocations: 70.22 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.4468, allocations: 3.938 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.4468, allocations: 0 / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.4468, allocations: 0 / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.447, allocations: 43.89 kB / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000356/0.4474, allocations: 288.8 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.4475, allocations: 58.55 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.378e-05/0.4476, allocations: 28.97 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.4476, allocations: 0 / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.4478, allocations: 79.38 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.4478, allocations: 0 / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003658/0.4482, allocations: 133.5 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.4482, allocations: 51.41 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.279e-05/0.4483, allocations: 113.8 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.4483, allocations: 25.7 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.581e-05/0.4484, allocations: 92.06 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.4484, allocations: 15.81 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.4484, allocations: 25.72 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.968e-05/0.4485, allocations: 318.8 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.477e-05/0.4486, allocations: 27.97 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.4487, allocations: 68.2 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.4489, allocations: 84.2 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4489, allocations: 3.938 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002442/0.4492, allocations: 117.5 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.4492, allocations: 8 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.4492, allocations: 48 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.4492, allocations: 7.984 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.434e-05/0.4493, allocations: 19.92 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.4493, allocations: 3.984 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.385e-05/0.4494, allocations: 8.125 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.4494, allocations: 8 kB / 1.021 GB, free: 14.2 MB / 0.7794 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.204e-05/0.4495, allocations: 126.2 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.4495, allocations: 7.906 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002519/0.4498, allocations: 106 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.4498, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.4498, allocations: 4 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.4498, allocations: 4.188 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.4502, allocations: 358.4 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4502, allocations: 3.938 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.967e-05/0.4502, allocations: 11.98 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.4503, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.4503, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4503, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4503, allocations: 8 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.4505, allocations: 195.3 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.503e-05/0.4506, allocations: 81.11 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.4506, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.427e-05/0.4507, allocations: 11.98 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/0.4507, allocations: 15.86 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.4507, allocations: 8.25 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.519e-05/0.4508, allocations: 87.28 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4508, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002244/0.451, allocations: 15.98 kB / 1.022 GB, free: 13.07 MB / 0.7794 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.0004862/0.4515, allocations: 0.7319 MB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002172/0.4517, allocations: 67.89 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.4517, allocations: 0 / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.4518, allocations: 35.91 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.4521, allocations: 18.94 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.4534, allocations: 1.436 MB / 1.024 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.4535, allocations: 0.6809 MB / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.872e-05/0.4536, allocations: 4 kB / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.4536, allocations: 15.42 kB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.4536, allocations: 4 kB / 1.025 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.018/1.471, allocations: 1.587 MB / 1.026 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/1.471, allocations: 215.1 kB / 1.027 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.079/3.551, allocations: 0 / 1.027 GB, free: 8.184 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches