Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008654/0.0008654, 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.0008492/0.0008492, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9015/0.9015, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.658/1.658, allocations: 359 MB / 0.6037 GB, free: 11.09 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.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 0.9505 GB, free: 3.477 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.013e-05/1.125e-05, allocations: 14.22 kB / 0.9505 GB, free: 3.461 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001654/0.001665, allocations: 1.451 MB / 0.9519 GB, free: 1.996 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.000544/0.002209, allocations: 475.4 kB / 0.9524 GB, free: 1.527 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.002231, allocations: 0 / 0.9524 GB, free: 1.527 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.079e-05/0.002252, allocations: 7.922 kB / 0.9524 GB, free: 1.52 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 4.204e-05/0.002294, allocations: 0 / 0.9524 GB, free: 1.52 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001518/0.002446, allocations: 27.8 kB / 0.9524 GB, free: 1.492 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 5.023e-05/0.002496, allocations: 27.92 kB / 0.9524 GB, free: 1.465 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 6.816e-05/0.002564, allocations: 7.984 kB / 0.9525 GB, free: 1.457 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 5.079e-05/0.002615, allocations: 15.98 kB / 0.9525 GB, free: 1.441 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 2.402e-05/0.002639, allocations: 0 / 0.9525 GB, free: 1.441 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.00265, allocations: 8 kB / 0.9525 GB, free: 1.434 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 4.681e-05/0.002696, allocations: 19.92 kB / 0.9525 GB, free: 1.414 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.031e-05/0.002707, allocations: 0 / 0.9525 GB, free: 1.414 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.577e-05/0.002723, allocations: 15.92 kB / 0.9525 GB, free: 1.398 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 8.14e-05/0.002804, allocations: 35.89 kB / 0.9525 GB, free: 1.363 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.002805, allocations: 0 / 0.9525 GB, free: 1.363 MB / 0.9011 GB Notification: Performance of FrontEnd: time 6.91e-07/0.002806, allocations: 0 / 0.9525 GB, free: 1.363 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.507e-06/0.00281, allocations: 0 / 0.9525 GB, free: 1.363 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002515/0.003061, allocations: 266.3 kB / 0.9528 GB, free: 1.074 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 2.898e-05/0.00309, allocations: 8.031 kB / 0.9528 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.19e-05/0.003112, allocations: 38.69 kB / 0.9528 GB, free: 1.02 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.365e-05/0.003126, allocations: 4.891 kB / 0.9528 GB, free: 1.016 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.999e-05/0.003186, allocations: 117.7 kB / 0.953 GB, free: 0.875 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.266e-06/0.003194, allocations: 4.375 kB / 0.953 GB, free: 0.8711 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-06/0.0032, allocations: 4.375 kB / 0.953 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.967e-05/0.0033, allocations: 50.23 kB / 0.953 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.611e-06/0.003305, allocations: 192 / 0.953 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.003313, allocations: 4.125 kB / 0.953 GB, free: 0.8086 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.003317, allocations: 0 / 0.953 GB, free: 0.8086 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.333e-05/0.0034, allocations: 39.91 kB / 0.9531 GB, free: 0.7695 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002138/0.003614, allocations: 212.1 kB / 0.9533 GB, free: 0.5195 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 7.11e-05/0.003685, allocations: 34.56 kB / 0.9533 GB, free: 488 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.21e-05/0.003727, allocations: 24.83 kB / 0.9533 GB, free: 460 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 6.379e-05/0.003791, allocations: 12 kB / 0.9533 GB, free: 448 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.456e-05/0.003806, allocations: 30.56 kB / 0.9534 GB, free: 408 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.003806, allocations: 3.938 kB / 0.9534 GB, free: 404 kB / 0.9011 GB Notification: Performance of matching and sorting (n=2): time 0.0001803/0.003987, allocations: 89.59 kB / 0.9534 GB, free: 308 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.461e-05/0.004011, allocations: 51.41 kB / 0.9535 GB, free: 244 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.823e-05/0.00406, allocations: 105.8 kB / 0.9536 GB, free: 128 kB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 8.836e-06/0.004068, allocations: 29.7 kB / 0.9536 GB, free: 92 kB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 2.801e-05/0.004096, allocations: 80.14 kB / 0.9537 GB, free: 8 kB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.24e-05/0.004109, allocations: 3.953 kB / 0.9537 GB, free: 4 kB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.32e-05/0.004142, allocations: 17.72 kB / 0.9537 GB, free: 15.98 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.104e-05/0.004213, allocations: 315 kB / 0.954 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.819e-05/0.004251, allocations: 19.98 kB / 0.954 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.526e-05/0.004287, allocations: 19.94 kB / 0.9541 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.274e-05/0.004359, allocations: 40.77 kB / 0.9541 GB, free: 15.58 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.004361, allocations: 3.984 kB / 0.9541 GB, free: 15.58 MB / 0.9167 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.027e-05/0.004452, allocations: 69.67 kB / 0.9542 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.004462, allocations: 6.344 kB / 0.9542 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.004465, allocations: 0 / 0.9542 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.075e-06/0.004473, allocations: 0 / 0.9542 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.586e-05/0.004519, allocations: 11.98 kB / 0.9542 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.875e-06/0.004522, allocations: 0 / 0.9542 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.143e-05/0.004543, allocations: 11.98 kB / 0.9542 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-06/0.004546, allocations: 0 / 0.9542 GB, free: 15.48 MB / 0.9167 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 4.655e-05/0.004593, allocations: 109.8 kB / 0.9543 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.126e-05/0.004604, allocations: 7.969 kB / 0.9543 GB, free: 15.35 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.00472, allocations: 80.86 kB / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.004721, allocations: 0 / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.004724, allocations: 0 / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.004726, allocations: 0 / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.498e-05/0.004821, allocations: 132.7 kB / 0.9545 GB, free: 15.09 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.004823, allocations: 3.938 kB / 0.9545 GB, free: 15.09 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.32e-05/0.004846, allocations: 11.98 kB / 0.9545 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.004848, allocations: 4.031 kB / 0.9545 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-06/0.004852, allocations: 0 / 0.9545 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.004852, allocations: 0 / 0.9545 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.004853, allocations: 0 / 0.9545 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001159/0.004969, allocations: 167.5 kB / 0.9547 GB, free: 14.89 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-06/0.004975, allocations: 7.938 kB / 0.9547 GB, free: 14.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.925e-06/0.004983, allocations: 0 / 0.9547 GB, free: 14.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.609e-05/0.005019, allocations: 7.984 kB / 0.9547 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.485e-05/0.005044, allocations: 3.984 kB / 0.9547 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.005046, allocations: 8.281 kB / 0.9547 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.696e-05/0.005073, allocations: 87.27 kB / 0.9548 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6.1e-08/0.005073, allocations: 0 / 0.9548 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001435/0.005217, allocations: 11.94 kB / 0.9548 GB, free: 14.77 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: 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 0.0003225/0.005539, allocations: 0.6929 MB / 0.9555 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001264/0.005666, allocations: 47.92 kB / 0.9555 GB, free: 14 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 9.12e-07/0.005667, allocations: 3.938 kB / 0.9555 GB, free: 14 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 3.879e-05/0.005705, allocations: 15.98 kB / 0.9556 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.00589, allocations: 8 kB / 0.9556 GB, free: 13.97 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002705/0.00616, allocations: 142.4 kB / 0.9557 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.285e-05/0.006193, allocations: 55.36 kB / 0.9558 GB, free: 13.72 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 1.584e-05/0.006209, allocations: 4.109 kB / 0.9558 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.411e-05/0.006233, allocations: 20.48 kB / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of SimCode: time 4.11e-07/0.006233, allocations: 0 / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01291/0.01914, allocations: 2.101 MB / 0.9578 GB, free: 11.73 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.571/6.59, allocations: 5.781 kB / 0.9578 GB, free: 11.73 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.473895575851202]