Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 105 kB / 16.35 MB, free: 5.824 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.001152/0.001152, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.185/1.185, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.213/2.213, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 68.81 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2482, allocations: 153 MB / 1.027 GB, free: 2.027 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002572/0.2508, allocations: 1.546 MB / 1.028 GB, free: 484 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0004393/0.2512, allocations: 168.3 kB / 1.028 GB, free: 312 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.413e-05/0.2513, allocations: 0 / 1.028 GB, free: 312 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.99e-05/0.2513, allocations: 7.984 kB / 1.028 GB, free: 304 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.956e-05/0.2514, allocations: 7.938 kB / 1.028 GB, free: 296 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.2517, allocations: 47.88 kB / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.147e-05/0.2518, allocations: 35.92 kB / 1.028 GB, free: 212 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.2519, allocations: 19.97 kB / 1.028 GB, free: 192 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.706e-05/0.2519, allocations: 11.94 kB / 1.029 GB, free: 180 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.198e-05/0.2519, allocations: 19.92 kB / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.421e-05/0.252, allocations: 4 kB / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.2521, allocations: 55.94 kB / 1.029 GB, free: 100 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/0.2521, allocations: 3.938 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.031e-05/0.2521, allocations: 23.92 kB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001394/0.2523, allocations: 63.78 kB / 1.029 GB, free: 8 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2523, allocations: 0 / 1.029 GB, free: 8 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2523, allocations: 0 / 1.029 GB, free: 8 kB / 0.795 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2523, allocations: 0 / 1.029 GB, free: 8 kB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004527/0.2528, allocations: 360.5 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.2528, allocations: 8.031 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.2528, allocations: 8.938 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.253, allocations: 172.3 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.253, allocations: 8.312 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.253, allocations: 384 / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001687/0.2532, allocations: 62.23 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.2532, allocations: 3.938 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.2532, allocations: 11.92 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.2532, allocations: 0 / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.2534, allocations: 43.95 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000404/0.2538, allocations: 280.8 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.2542, allocations: 66.53 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.635e-05/0.2542, allocations: 20.84 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002158/0.2545, allocations: 174.2 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/0.2545, allocations: 30.56 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2545, allocations: 0 / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003397/0.2549, allocations: 97.53 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.801e-05/0.2549, allocations: 51.41 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.999e-05/0.255, allocations: 113.8 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.255, allocations: 25.7 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.761e-05/0.255, allocations: 92.08 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.2551, allocations: 7.891 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.971e-05/0.2551, allocations: 13.72 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.2552, allocations: 318.8 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.122e-05/0.2553, allocations: 23.97 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.17e-05/0.2554, allocations: 19.98 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.2555, allocations: 49.03 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.2555, allocations: 0 / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001834/0.2557, allocations: 77.64 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.2557, allocations: 8 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.2557, allocations: 0 / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.2557, allocations: 0 / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.381e-05/0.2558, allocations: 19.92 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.908e-06/0.2558, allocations: 0 / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.126e-05/0.2559, allocations: 11.89 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.2559, allocations: 0 / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (bin.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.578e-05/0.256, allocations: 121.7 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.256, allocations: 0 / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002375/0.2563, allocations: 85.55 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2563, allocations: 0 / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2563, allocations: 0 / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.2563, allocations: 3.984 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001448/0.2564, allocations: 169.6 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-06/0.2565, allocations: 0 / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.918e-05/0.2565, allocations: 15.92 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2565, allocations: 3.938 kB / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.2566, allocations: 0 / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.2566, allocations: 4 kB / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2566, allocations: 8 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002224/0.2568, allocations: 171.4 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.303e-05/0.2569, allocations: 85.09 kB / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.2569, allocations: 0 / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.744e-05/0.257, allocations: 4 kB / 1.031 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.257, allocations: 7.984 kB / 1.031 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.257, allocations: 4 kB / 1.031 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.126e-05/0.2571, allocations: 91.27 kB / 1.031 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2571, allocations: 0 / 1.031 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002276/0.2573, allocations: 20 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,bin.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001575/0.2575, allocations: 119.2 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002013/0.2577, allocations: 51.83 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2577, allocations: 4 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.385e-05/0.2578, allocations: 23.98 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.258, allocations: 11.92 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002612/0.2583, allocations: 117.5 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.2585, allocations: 0.6768 MB / 1.032 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.732e-05/0.2585, allocations: 8 kB / 1.032 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.347e-05/0.2586, allocations: 11.44 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of SimCode: time 3.296e-06/0.2586, allocations: 0 / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of Templates: time 0.002868/0.2615, allocations: 0.9762 MB / 1.033 GB, free: 10.68 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches