Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.001397/0.001397, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 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.001688/0.001688, allocations: 169 kB / 23.02 MB, free: 1.551 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.9654/0.9654, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.139/2.139, allocations: 429.5 MB / 0.6732 GB, free: 4.023 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 0.8782 GB, free: 6.316 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.642e-05/2.828e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.006378/0.006407, allocations: 1.501 MB / 0.8796 GB, free: 4.824 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.000733/0.00714, allocations: 496.3 kB / 0.8801 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.179e-05/0.007171, allocations: 1.875 kB / 0.8801 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.15e-05/0.007203, allocations: 3.984 kB / 0.8801 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.489e-05/0.007268, allocations: 11.98 kB / 0.8801 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002043/0.007472, allocations: 15.97 kB / 0.8801 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.502e-05/0.007537, allocations: 29.27 kB / 0.8802 GB, free: 4.281 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.163e-05/0.007619, allocations: 4 kB / 0.8802 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 6.652e-05/0.007685, allocations: 19.86 kB / 0.8802 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.253e-05/0.007718, allocations: 8.969 kB / 0.8802 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.00773, allocations: 0 / 0.8802 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.325e-05/0.007794, allocations: 23.91 kB / 0.8802 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.426e-05/0.007808, allocations: 4.656 kB / 0.8802 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.059e-05/0.007828, allocations: 11.92 kB / 0.8802 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.007932, allocations: 25.56 kB / 0.8803 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.007935, allocations: 0 / 0.8803 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.302e-06/0.007936, allocations: 0 / 0.8803 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.007943, allocations: 3.984 kB / 0.8803 GB, free: 4.184 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003386/0.008282, allocations: 363.1 kB / 0.8806 GB, free: 3.797 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.008317, allocations: 8.031 kB / 0.8806 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003245/0.01156, allocations: 20.88 kB / 0.8806 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.446e-05/0.01166, allocations: 116.5 kB / 0.8808 GB, free: 3.629 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.01167, allocations: 384 / 0.8808 GB, free: 3.629 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.01168, allocations: 4.375 kB / 0.8808 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.01182, allocations: 53.02 kB / 0.8808 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.01184, allocations: 4.172 kB / 0.8808 GB, free: 3.562 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.01185, allocations: 384 / 0.8808 GB, free: 3.562 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.01186, allocations: 7.922 kB / 0.8808 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.128e-05/0.0119, allocations: 8 kB / 0.8808 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003293/0.01223, allocations: 256.5 kB / 0.8811 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.586e-05/0.01229, allocations: 35 kB / 0.8811 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.692e-05/0.01232, allocations: 12.86 kB / 0.8811 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.01234, allocations: 8 kB / 0.8811 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.01237, allocations: 41.33 kB / 0.8812 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.01237, allocations: 0 / 0.8812 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001678/0.01254, allocations: 45.66 kB / 0.8812 GB, free: 3.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.01256, allocations: 55.34 kB / 0.8813 GB, free: 3.023 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.817e-05/0.01264, allocations: 165.9 kB / 0.8814 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.01265, allocations: 25.7 kB / 0.8814 GB, free: 2.812 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.943e-05/0.0127, allocations: 130.9 kB / 0.8816 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.01272, allocations: 3.953 kB / 0.8816 GB, free: 2.676 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.578e-05/0.01275, allocations: 23.36 kB / 0.8816 GB, free: 2.645 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.01287, allocations: 492.1 kB / 0.8821 GB, free: 2.152 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.1e-05/0.0129, allocations: 8.125 kB / 0.8821 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.512e-05/0.01291, allocations: 8 kB / 0.8821 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.923e-05/0.01295, allocations: 11.94 kB / 0.8821 GB, free: 2.121 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01295, allocations: 0 / 0.8821 GB, free: 2.121 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.205e-05/0.01303, allocations: 53.62 kB / 0.8821 GB, free: 2.062 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.01305, allocations: 7.938 kB / 0.8821 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.01305, allocations: 0 / 0.8821 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.01307, allocations: 0 / 0.8821 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.216e-05/0.01316, allocations: 11.98 kB / 0.8822 GB, free: 2.043 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.01316, allocations: 96 / 0.8822 GB, free: 2.043 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.447e-05/0.0132, allocations: 8 kB / 0.8822 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-06/0.01321, allocations: 0 / 0.8822 GB, free: 2.035 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.411e-05/0.01327, allocations: 152.6 kB / 0.8823 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.647e-05/0.0133, allocations: 7.938 kB / 0.8823 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.898e-05/0.01334, allocations: 11.3 kB / 0.8823 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.01334, allocations: 0 / 0.8823 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.01334, allocations: 0 / 0.8823 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.01334, allocations: 0 / 0.8823 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.01346, allocations: 116.6 kB / 0.8824 GB, free: 1.707 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.01346, allocations: 7.984 kB / 0.8825 GB, free: 1.699 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.329e-05/0.0135, allocations: 4 kB / 0.8825 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.01351, allocations: 0 / 0.8825 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-06/0.01351, allocations: 3.938 kB / 0.8825 GB, free: 1.691 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.01351, allocations: 4 kB / 0.8825 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.01352, allocations: 0 / 0.8825 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.01363, allocations: 199.8 kB / 0.8827 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-06/0.01364, allocations: 0 / 0.8827 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.01365, allocations: 3.938 kB / 0.8827 GB, free: 1.469 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.02e-05/0.01371, allocations: 7.984 kB / 0.8827 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.997e-05/0.01374, allocations: 4.031 kB / 0.8827 GB, free: 1.457 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.01375, allocations: 4 kB / 0.8827 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.602e-05/0.01378, allocations: 119.2 kB / 0.8828 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8e-08/0.01378, allocations: 4 kB / 0.8828 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002159/0.014, allocations: 8 kB / 0.8828 GB, free: 1.324 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 9.312e-05/0.01409, allocations: 95.23 kB / 0.8829 GB, free: 1.223 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001637/0.01573, allocations: 15.69 kB / 0.8829 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01573, allocations: 3.938 kB / 0.8829 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.015e-05/0.01575, allocations: 15.75 kB / 0.8829 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.01594, allocations: 11.98 kB / 0.8829 GB, free: 1.168 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002505/0.01619, allocations: 114.3 kB / 0.883 GB, free: 1.027 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.206e-05/0.01622, allocations: 55.36 kB / 0.8831 GB, free: 0.9531 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.575e-05/0.01625, allocations: 4.062 kB / 0.8831 GB, free: 0.9492 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.011e-05/0.01628, allocations: 12.5 kB / 0.8831 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of SimCode: time 6.21e-07/0.01628, allocations: 0 / 0.8831 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of Templates: time 0.001952/0.01823, allocations: 0.6178 MB / 0.8837 GB, free: 332 kB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.467244373168796]