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.001318/0.001318, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 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.001411/0.001411, allocations: 215 kB / 23.03 MB, free: 4.949 MB / 14.72 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 1.491/1.491, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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 3.452/3.452, allocations: 0.5003 GB / 0.8062 GB, free: 28.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 67.45 kB / 1.17 GB, free: 19.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4346/0.4367, allocations: 179 MB / 1.345 GB, free: 15.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003324/0.44, allocations: 1.462 MB / 1.347 GB, free: 14.51 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001033/0.4411, allocations: 466.9 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.073e-05/0.4411, allocations: 0 / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.61e-05/0.4412, allocations: 0 / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.601e-05/0.4412, allocations: 7.922 kB / 1.347 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.4415, allocations: 27.92 kB / 1.347 GB, free: 14.01 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.01e-05/0.4416, allocations: 31.86 kB / 1.347 GB, free: 13.98 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.4417, allocations: 0 / 1.347 GB, free: 13.98 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.388e-05/0.4418, allocations: 11.98 kB / 1.347 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.217e-05/0.4418, allocations: 15.92 kB / 1.347 GB, free: 13.95 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.4419, allocations: 4 kB / 1.347 GB, free: 13.95 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.162e-05/0.4419, allocations: 15.98 kB / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.953e-05/0.4419, allocations: 3.984 kB / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.508e-05/0.442, allocations: 11.94 kB / 1.347 GB, free: 13.92 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.4421, allocations: 40.05 kB / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4421, allocations: 0 / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4421, allocations: 4 kB / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.4421, allocations: 4 kB / 1.347 GB, free: 13.87 MB / 1.045 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.0004978/0.4426, allocations: 262.3 kB / 1.348 GB, free: 13.59 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.4427, allocations: 12.03 kB / 1.348 GB, free: 13.57 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.181e-05/0.4427, allocations: 192 / 1.348 GB, free: 13.57 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.362e-05/0.4427, allocations: 30.75 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002752/0.443, allocations: 20.86 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.4431, allocations: 106.5 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.4431, allocations: 384 / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.4431, allocations: 384 / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.4434, allocations: 65.61 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.4434, allocations: 0 / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.4434, allocations: 3.938 kB / 1.348 GB, free: 13.31 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.4434, allocations: 3.984 kB / 1.348 GB, free: 13.31 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001703/0.4436, allocations: 31.97 kB / 1.348 GB, free: 13.28 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004729/0.444, allocations: 224 kB / 1.348 GB, free: 13.02 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/0.4442, allocations: 46.48 kB / 1.348 GB, free: 12.96 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.612e-05/0.4443, allocations: 24.91 kB / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.4443, allocations: 0 / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.444e-05/0.4443, allocations: 42.5 kB / 1.348 GB, free: 12.88 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 6.61e-07/0.4443, allocations: 0 / 1.348 GB, free: 12.88 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0003882/0.4447, allocations: 85.59 kB / 1.348 GB, free: 12.79 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.4448, allocations: 55.41 kB / 1.348 GB, free: 12.73 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.709e-05/0.4449, allocations: 106 kB / 1.348 GB, free: 12.61 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.4449, allocations: 25.7 kB / 1.348 GB, free: 12.58 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.458e-05/0.445, allocations: 92.08 kB / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.445, allocations: 7.891 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.445, allocations: 17.7 kB / 1.349 GB, free: 12.46 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002252/0.4453, allocations: 318.8 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.803e-05/0.4454, allocations: 15.98 kB / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.267e-05/0.4454, allocations: 15.98 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.4456, allocations: 52.81 kB / 1.349 GB, free: 12.05 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4456, allocations: 4 kB / 1.349 GB, free: 12.05 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001979/0.4458, allocations: 65.66 kB / 1.349 GB, free: 11.98 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.4458, allocations: 4 kB / 1.349 GB, free: 11.97 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4458, allocations: 0 / 1.349 GB, free: 11.97 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.4458, allocations: 0 / 1.349 GB, free: 11.97 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.4459, allocations: 11.98 kB / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.4459, allocations: 4.031 kB / 1.349 GB, free: 11.96 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.388e-05/0.446, allocations: 8 kB / 1.349 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.446, allocations: 7.984 kB / 1.349 GB, free: 11.94 MB / 1.045 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 8.823e-05/0.4461, allocations: 109.8 kB / 1.349 GB, free: 11.82 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/0.4461, allocations: 0 / 1.349 GB, free: 11.82 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.869e-05/0.4462, allocations: 15.23 kB / 1.349 GB, free: 11.81 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.4462, allocations: 0 / 1.349 GB, free: 11.81 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4462, allocations: 0 / 1.349 GB, free: 11.81 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.4462, allocations: 0 / 1.349 GB, free: 11.81 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.4464, allocations: 144.6 kB / 1.349 GB, free: 11.62 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.4464, allocations: 0 / 1.349 GB, free: 11.62 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.652e-05/0.4465, allocations: 7.984 kB / 1.349 GB, free: 11.62 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.4465, allocations: 4 kB / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.4465, allocations: 0 / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.4465, allocations: 0 / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4465, allocations: 0 / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.4467, allocations: 167.5 kB / 1.349 GB, free: 11.43 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.482e-06/0.4467, allocations: 4.031 kB / 1.349 GB, free: 11.43 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.4467, allocations: 256 / 1.349 GB, free: 11.43 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.4469, allocations: 7.984 kB / 1.349 GB, free: 11.42 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.583e-05/0.4469, allocations: 11.94 kB / 1.349 GB, free: 11.41 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-06/0.4469, allocations: 3.984 kB / 1.349 GB, free: 11.41 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.09e-05/0.4469, allocations: 87.22 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4469, allocations: 3.938 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002133/0.4472, allocations: 4 kB / 1.35 GB, free: 11.31 MB / 1.045 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.0005568/0.4477, allocations: 0.6968 MB / 1.35 GB, free: 10.59 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002234/0.4479, allocations: 39.95 kB / 1.35 GB, free: 10.55 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4479, allocations: 0 / 1.35 GB, free: 10.55 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.791e-05/0.448, allocations: 23.92 kB / 1.35 GB, free: 10.52 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.4484, allocations: 11.92 kB / 1.35 GB, free: 10.51 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005172/0.4489, allocations: 155.2 kB / 1.35 GB, free: 10.32 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.533e-05/0.449, allocations: 59.34 kB / 1.351 GB, free: 10.24 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.047e-05/0.449, allocations: 4 kB / 1.351 GB, free: 10.24 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.034e-05/0.449, allocations: 11.44 kB / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of SimCode: time 2.81e-07/0.449, allocations: 0 / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0229/0.472, allocations: 1.598 MB / 1.352 GB, free: 8.777 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.79, allocations: 8.047 kB / 1.352 GB, free: 8.77 MB / 1.045 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 19.049791331985034]