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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.005992/0.005992, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001486/0.001486, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.23/1.23, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.352/2.352, allocations: 437.1 MB / 0.7106 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 67.91 kB / 1.018 GB, free: 9.891 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6286/0.6303, allocations: 151.6 MB / 1.166 GB, free: 3.746 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001598/0.6319, allocations: 0.6738 MB / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001216/0.6331, allocations: 1.064 MB / 1.168 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.061e-05/0.6332, allocations: 0 / 1.168 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.914e-05/0.6332, allocations: 11.81 kB / 1.168 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.509e-05/0.6333, allocations: 3.938 kB / 1.168 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.6336, allocations: 55.81 kB / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.558e-05/0.6337, allocations: 43.92 kB / 1.168 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.138e-05/0.6338, allocations: 7.984 kB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.31e-05/0.6339, allocations: 35.84 kB / 1.168 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.592e-05/0.6339, allocations: 19.92 kB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.6339, allocations: 4 kB / 1.168 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.344e-05/0.634, allocations: 15.98 kB / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.195e-05/0.634, allocations: 11.98 kB / 1.168 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.319e-05/0.6341, allocations: 23.86 kB / 1.168 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.6342, allocations: 60.77 kB / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.6342, allocations: 0 / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.252e-06/0.6342, allocations: 0 / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.6342, allocations: 0 / 1.168 GB, free: 1.707 MB / 0.8887 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.0005403/0.6348, allocations: 381.9 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.6348, allocations: 8.922 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.6348, allocations: 34.73 kB / 1.169 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.596e-05/0.6349, allocations: 4.938 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.635, allocations: 168.3 kB / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.635, allocations: 4.375 kB / 1.169 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.635, allocations: 8.375 kB / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.6352, allocations: 66.22 kB / 1.169 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.6352, allocations: 3.938 kB / 1.169 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.6352, allocations: 4 kB / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.6353, allocations: 0 / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.6354, allocations: 43.95 kB / 1.169 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004327/0.6359, allocations: 276.8 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.636, allocations: 58.55 kB / 1.169 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.736e-05/0.6361, allocations: 32.97 kB / 1.169 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.6362, allocations: 0 / 1.169 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001906/0.6364, allocations: 79.44 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.6364, allocations: 4 kB / 1.169 GB, free: 388 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0003871/0.6368, allocations: 125.5 kB / 1.169 GB, free: 256 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.6368, allocations: 55.39 kB / 1.169 GB, free: 188 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.428e-05/0.6369, allocations: 101.9 kB / 1.17 GB, free: 76 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.6369, allocations: 25.7 kB / 1.17 GB, free: 44 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/0.637, allocations: 92.12 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.803e-05/0.637, allocations: 19.8 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.035e-05/0.6371, allocations: 29.7 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.6372, allocations: 322.8 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.843e-05/0.6373, allocations: 23.97 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.6375, allocations: 68.39 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.6377, allocations: 96.19 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.6377, allocations: 4 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002697/0.638, allocations: 113.5 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.638, allocations: 4 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.638, allocations: 0 / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.638, allocations: 4 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.6381, allocations: 27.91 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.6381, allocations: 0 / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.735e-05/0.6382, allocations: 11.95 kB / 1.17 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.6382, allocations: 4 kB / 1.17 GB, free: 15.18 MB / 0.9044 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.019e-05/0.6383, allocations: 125.9 kB / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.989e-06/0.6383, allocations: 0 / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002829/0.6386, allocations: 109.9 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.6386, allocations: 4 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.6386, allocations: 0 / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.6387, allocations: 0 / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.6391, allocations: 370.7 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.6391, allocations: 0 / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.151e-05/0.6392, allocations: 15.98 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.6392, allocations: 0 / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.6392, allocations: 4 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.6392, allocations: 80 / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6392, allocations: 3.984 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.6395, allocations: 199.4 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.086e-05/0.6396, allocations: 81.06 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.6396, allocations: 0 / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.367e-05/0.6397, allocations: 11.98 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/0.6397, allocations: 7.922 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.6397, allocations: 4 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.195e-05/0.6398, allocations: 87.22 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6398, allocations: 4 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002311/0.64, allocations: 19.98 kB / 1.171 GB, free: 14.05 MB / 0.9044 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.0006355/0.6407, allocations: 0.7281 MB / 1.172 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002627/0.6409, allocations: 76.06 kB / 1.172 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.641, allocations: 3.938 kB / 1.172 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.6411, allocations: 39.84 kB / 1.172 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.6413, allocations: 18.62 kB / 1.172 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.6429, allocations: 1.416 MB / 1.174 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.6432, allocations: 0.6828 MB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.015e-05/0.6432, allocations: 7.984 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.619e-05/0.6432, allocations: 15.44 kB / 1.174 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of SimCode: time 3.21e-07/0.6432, allocations: 0 / 1.174 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.732/2.375, allocations: 1.816 MB / 1.176 GB, free: 9.199 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/10.32, allocations: 6.359 kB / 1.176 GB, free: 9.195 MB / 0.9044 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=400 --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