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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008347/0.0008347, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8671/0.8671, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.656/1.656, allocations: 359 MB / 0.6037 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 0.9505 GB, free: 3.539 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.381e-05/1.52e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.535 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001195/0.001211, allocations: 0.674 MB / 0.9511 GB, free: 2.855 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0009789/0.00219, allocations: 1.089 MB / 0.9522 GB, free: 1.754 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.991e-05/0.002229, allocations: 0 / 0.9522 GB, free: 1.754 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.468e-05/0.002254, allocations: 3.938 kB / 0.9522 GB, free: 1.75 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.967e-05/0.002314, allocations: 15.92 kB / 0.9522 GB, free: 1.734 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002678/0.002582, allocations: 47.77 kB / 0.9523 GB, free: 1.688 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 8.877e-05/0.00267, allocations: 55.78 kB / 0.9523 GB, free: 1.633 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 8.819e-05/0.002759, allocations: 0 / 0.9523 GB, free: 1.633 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 7.949e-05/0.002838, allocations: 27.97 kB / 0.9523 GB, free: 1.605 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.547e-05/0.002883, allocations: 23.91 kB / 0.9524 GB, free: 1.582 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.002899, allocations: 4 kB / 0.9524 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.687e-05/0.002955, allocations: 23.92 kB / 0.9524 GB, free: 1.555 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.304e-05/0.002978, allocations: 15.97 kB / 0.9524 GB, free: 1.539 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.487e-05/0.003003, allocations: 8 kB / 0.9524 GB, free: 1.531 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001274/0.003131, allocations: 71.77 kB / 0.9525 GB, free: 1.461 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.003135, allocations: 4 kB / 0.9525 GB, free: 1.457 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.112e-06/0.003136, allocations: 0 / 0.9525 GB, free: 1.457 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.003139, allocations: 0 / 0.9525 GB, free: 1.457 MB / 0.9011 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.0004263/0.003566, allocations: 298.1 kB / 0.9528 GB, free: 1.133 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.003603, allocations: 12.03 kB / 0.9528 GB, free: 1.121 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.872e-05/0.003632, allocations: 30.75 kB / 0.9528 GB, free: 1.082 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.13e-05/0.003693, allocations: 12.88 kB / 0.9528 GB, free: 1.07 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/0.003798, allocations: 113.8 kB / 0.9529 GB, free: 0.9336 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.003814, allocations: 8.297 kB / 0.9529 GB, free: 0.9258 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.003829, allocations: 4.375 kB / 0.9529 GB, free: 0.9219 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.004063, allocations: 66.22 kB / 0.953 GB, free: 0.8516 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.00407, allocations: 192 / 0.953 GB, free: 0.8516 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.004081, allocations: 4.359 kB / 0.953 GB, free: 0.8477 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.004087, allocations: 4.125 kB / 0.953 GB, free: 0.8438 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001022/0.004189, allocations: 43.91 kB / 0.9531 GB, free: 0.8008 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003521/0.004541, allocations: 244 kB / 0.9533 GB, free: 0.5195 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.004644, allocations: 54.53 kB / 0.9533 GB, free: 468 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.983e-05/0.004694, allocations: 24.97 kB / 0.9534 GB, free: 440 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.004722, allocations: 7.938 kB / 0.9534 GB, free: 432 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001236/0.004845, allocations: 79.31 kB / 0.9534 GB, free: 340 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 8.42e-07/0.004846, allocations: 0 / 0.9534 GB, free: 340 kB / 0.9011 GB Notification: Performance of matching and sorting (n=7): time 0.0002546/0.005101, allocations: 133.6 kB / 0.9536 GB, free: 200 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/0.005134, allocations: 55.41 kB / 0.9536 GB, free: 132 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.726e-05/0.005192, allocations: 105.8 kB / 0.9537 GB, free: 16 kB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.005215, allocations: 25.7 kB / 0.9538 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.777e-05/0.005253, allocations: 92.08 kB / 0.9538 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.00527, allocations: 15.84 kB / 0.9539 GB, free: 15.88 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/0.005305, allocations: 25.72 kB / 0.9539 GB, free: 15.84 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.407e-05/0.005379, allocations: 318.8 kB / 0.9542 GB, free: 15.52 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.264e-05/0.005431, allocations: 27.98 kB / 0.9542 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.598e-05/0.005497, allocations: 60.45 kB / 0.9543 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001172/0.005614, allocations: 92.19 kB / 0.9544 GB, free: 15.32 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.005618, allocations: 4 kB / 0.9544 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001639/0.005782, allocations: 125.4 kB / 0.9545 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.005795, allocations: 8 kB / 0.9545 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.0058, allocations: 0 / 0.9545 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.005811, allocations: 0 / 0.9545 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.681e-05/0.005878, allocations: 15.98 kB / 0.9545 GB, free: 15.16 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.005883, allocations: 4 kB / 0.9545 GB, free: 15.16 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.532e-05/0.005919, allocations: 11.98 kB / 0.9545 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-06/0.005928, allocations: 4.125 kB / 0.9545 GB, free: 15.14 MB / 0.9167 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 6.308e-05/0.005991, allocations: 124.4 kB / 0.9546 GB, free: 15.01 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.625e-06/0.005998, allocations: 8.125 kB / 0.9546 GB, free: 15 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.006162, allocations: 118.2 kB / 0.9548 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.006164, allocations: 7.875 kB / 0.9548 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.006167, allocations: 0 / 0.9548 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.00617, allocations: 4 kB / 0.9548 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.006435, allocations: 325.5 kB / 0.9551 GB, free: 14.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.006436, allocations: 4 kB / 0.9551 GB, free: 14.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.814e-05/0.006464, allocations: 11.98 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.006466, allocations: 0 / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.006474, allocations: 0 / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.006476, allocations: 4 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.006477, allocations: 0 / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001578/0.006635, allocations: 203.4 kB / 0.9553 GB, free: 14.27 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.282e-06/0.006641, allocations: 3.953 kB / 0.9553 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.006653, allocations: 8 kB / 0.9553 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.891e-05/0.006702, allocations: 7.984 kB / 0.9553 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.203e-05/0.006734, allocations: 8 kB / 0.9553 GB, free: 14.24 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.006746, allocations: 3.984 kB / 0.9553 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.531e-05/0.006771, allocations: 79.28 kB / 0.9554 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.006771, allocations: 4 kB / 0.9554 GB, free: 14.15 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001641/0.006935, allocations: 12 kB / 0.9554 GB, free: 14.14 MB / 0.9167 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.0003583/0.007293, allocations: 0.7397 MB / 0.9561 GB, free: 13.38 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001505/0.007444, allocations: 67.89 kB / 0.9562 GB, free: 13.31 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.007446, allocations: 4 kB / 0.9562 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.726e-05/0.007503, allocations: 31.91 kB / 0.9562 GB, free: 13.27 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001819/0.007685, allocations: 8.188 kB / 0.9562 GB, free: 13.27 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000987/0.008672, allocations: 1.43 MB / 0.9576 GB, free: 11.73 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.391e-05/0.008716, allocations: 67.25 kB / 0.9577 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.294e-05/0.008749, allocations: 8 kB / 0.9577 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.492e-05/0.008784, allocations: 20.48 kB / 0.9577 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of SimCode: time 6.01e-07/0.008785, allocations: 4 kB / 0.9577 GB, free: 11.61 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01478/0.02357, allocations: 2.51 MB / 0.9602 GB, free: 9.25 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.686/6.709, allocations: 7.688 kB / 0.9602 GB, free: 9.246 MB / 0.9167 GB " [Timeout remaining time 293] (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 --stepSize=0.0004 --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) [Timeout 420.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.666075590066612]