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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 114.3 kB / 17.13 MB, free: 5.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 197.2 kB / 20.08 MB, free: 3 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 225.6 MB / 248.5 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.531/2.531, allocations: 443.5 MB / 0.7293 GB, free: 14.66 MB / 0.5762 GB " [Timeout remaining time 177] 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002727/0.002727, allocations: 63.89 kB / 1.057 GB, free: 2.094 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3163, allocations: 160.8 MB / 1.214 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001859/0.3181, allocations: 0.6698 MB / 1.215 GB, free: 384 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.3194, allocations: 1.07 MB / 1.216 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.918e-05/0.3195, allocations: 0 / 1.216 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.47e-05/0.3195, allocations: 3.938 kB / 1.216 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.876e-05/0.3196, allocations: 3.938 kB / 1.216 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.3198, allocations: 43.83 kB / 1.216 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00011/0.3199, allocations: 55.84 kB / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.372e-05/0.32, allocations: 8 kB / 1.216 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.332e-05/0.3201, allocations: 19.92 kB / 1.216 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.142e-05/0.3201, allocations: 35.83 kB / 1.216 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.3201, allocations: 4 kB / 1.216 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.178e-05/0.3202, allocations: 11.98 kB / 1.216 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.107e-05/0.3202, allocations: 12 kB / 1.216 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.81e-05/0.3203, allocations: 19.86 kB / 1.216 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.3204, allocations: 59.78 kB / 1.216 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3204, allocations: 0 / 1.216 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3204, allocations: 4 kB / 1.216 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.018e-05/0.3204, allocations: 0 / 1.216 GB, free: 15.01 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.0006237/0.321, allocations: 375.2 kB / 1.216 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.3211, allocations: 8.031 kB / 1.216 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.416e-05/0.3211, allocations: 8.938 kB / 1.216 GB, free: 14.58 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.3212, allocations: 168.3 kB / 1.217 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.3213, allocations: 4.375 kB / 1.217 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.3213, allocations: 4.375 kB / 1.217 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002109/0.3215, allocations: 74.16 kB / 1.217 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3215, allocations: 4.125 kB / 1.217 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.3215, allocations: 3.938 kB / 1.217 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.3215, allocations: 0 / 1.217 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.3217, allocations: 39.95 kB / 1.217 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004418/0.3221, allocations: 288.8 kB / 1.217 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.3223, allocations: 58.42 kB / 1.217 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.3224, allocations: 32.95 kB / 1.217 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.3224, allocations: 0 / 1.217 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/0.3226, allocations: 79.36 kB / 1.217 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.3226, allocations: 4 kB / 1.217 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004225/0.323, allocations: 129.6 kB / 1.217 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.3231, allocations: 51.41 kB / 1.217 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.896e-05/0.3232, allocations: 105.8 kB / 1.217 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.3232, allocations: 29.7 kB / 1.217 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.423e-05/0.3232, allocations: 80.14 kB / 1.218 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.3233, allocations: 23.86 kB / 1.218 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.3233, allocations: 25.7 kB / 1.218 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3234, allocations: 314.8 kB / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.3236, allocations: 27.97 kB / 1.218 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.3237, allocations: 60.27 kB / 1.218 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002274/0.3239, allocations: 100.1 kB / 1.218 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3239, allocations: 0 / 1.218 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002793/0.3242, allocations: 117.5 kB / 1.218 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.3242, allocations: 8 kB / 1.218 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3242, allocations: 48 / 1.218 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3242, allocations: 7.984 kB / 1.218 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.3243, allocations: 19.92 kB / 1.218 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3243, allocations: 0 / 1.218 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.186e-05/0.3244, allocations: 11.92 kB / 1.218 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.3244, allocations: 8.125 kB / 1.218 GB, free: 12.53 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.76e-05/0.3245, allocations: 121.8 kB / 1.218 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.3245, allocations: 4 kB / 1.218 GB, free: 12.39 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.3248, allocations: 106 kB / 1.218 GB, free: 12.29 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3248, allocations: 0 / 1.218 GB, free: 12.29 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3248, allocations: 4 kB / 1.218 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3248, allocations: 192 / 1.218 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004763/0.3253, allocations: 370.6 kB / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3253, allocations: 11.88 kB / 1.219 GB, free: 11.85 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.306e-05/0.3254, allocations: 8 kB / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3254, allocations: 0 / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.3254, allocations: 3.984 kB / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3254, allocations: 0 / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3254, allocations: 4 kB / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003005/0.3257, allocations: 191.5 kB / 1.219 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.288e-05/0.3257, allocations: 89.05 kB / 1.219 GB, free: 11.53 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.3257, allocations: 0 / 1.219 GB, free: 11.53 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.777e-05/0.3258, allocations: 7.984 kB / 1.219 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.3259, allocations: 11.98 kB / 1.219 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.3259, allocations: 7.938 kB / 1.219 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.606e-05/0.3259, allocations: 87.27 kB / 1.219 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.3259, allocations: 0 / 1.219 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002386/0.3262, allocations: 19.94 kB / 1.219 GB, free: 11.39 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.0001405/0.3263, allocations: 103.2 kB / 1.219 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002678/0.3266, allocations: 71.88 kB / 1.219 GB, free: 11.21 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3266, allocations: 0 / 1.219 GB, free: 11.21 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.3267, allocations: 28.23 kB / 1.219 GB, free: 11.19 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.3269, allocations: 16.27 kB / 1.219 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003383/0.3273, allocations: 171.6 kB / 1.22 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.3276, allocations: 0.6845 MB / 1.22 GB, free: 10.26 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.976e-05/0.3276, allocations: 11.44 kB / 1.22 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of SimCode: time 3.71e-07/0.3276, allocations: 0 / 1.22 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of Templates: time 0.002523/0.3302, allocations: 0.916 MB / 1.221 GB, free: 9.34 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile [Timeout 300] (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) [Timeout 400] 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_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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.206668679835275]