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.000833/0.000833, 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.000913/0.000913, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9221/0.9221, allocations: 177.1 MB / 202.8 MB, free: 5.746 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 1.87/1.87, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.266e-05/2.459e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.47 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003065/0.003089, allocations: 1.46 MB / 1.001 GB, free: 12 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0008894/0.003979, allocations: 475.6 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.077e-05/0.00402, allocations: 3.938 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.519e-05/0.004055, allocations: 7.922 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.857e-05/0.004123, allocations: 0 / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.00438, allocations: 27.8 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 7.743e-05/0.004457, allocations: 23.92 kB / 1.002 GB, free: 11.47 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.004565, allocations: 7.984 kB / 1.002 GB, free: 11.46 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.821e-05/0.004653, allocations: 15.98 kB / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 3.667e-05/0.00469, allocations: 4 kB / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.004705, allocations: 4 kB / 1.002 GB, free: 11.44 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.968e-05/0.004775, allocations: 23.92 kB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.429e-05/0.004789, allocations: 0 / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.382e-05/0.004813, allocations: 11.98 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.004937, allocations: 35.83 kB / 1.002 GB, free: 11.37 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.004939, allocations: 0 / 1.002 GB, free: 11.37 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.563e-06/0.004941, allocations: 0 / 1.002 GB, free: 11.37 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.004946, allocations: 0 / 1.002 GB, free: 11.37 MB / 0.9636 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.0004242/0.00537, allocations: 266.3 kB / 1.002 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.005419, allocations: 12.75 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.746e-05/0.005456, allocations: 30.75 kB / 1.002 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002227/0.005679, allocations: 20.91 kB / 1.002 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.005781, allocations: 113.7 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.005797, allocations: 8.375 kB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.005808, allocations: 384 / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000174/0.005982, allocations: 54.22 kB / 1.002 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.005991, allocations: 192 / 1.002 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.006002, allocations: 4.125 kB / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.006006, allocations: 0 / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.006151, allocations: 43.91 kB / 1.002 GB, free: 10.76 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000385/0.006536, allocations: 220 kB / 1.002 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.006749, allocations: 38.59 kB / 1.002 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.681e-05/0.006806, allocations: 28.84 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.006833, allocations: 3.984 kB / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.006857, allocations: 30.56 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 1.734e-06/0.006858, allocations: 0 / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0002654/0.007124, allocations: 93.58 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.007155, allocations: 55.39 kB / 1.003 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.487e-05/0.00722, allocations: 105.9 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.007231, allocations: 25.7 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.007273, allocations: 84.14 kB / 1.003 GB, free: 9.988 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.007293, allocations: 7.953 kB / 1.003 GB, free: 9.98 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.007326, allocations: 13.7 kB / 1.003 GB, free: 9.961 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.172e-05/0.007408, allocations: 318.8 kB / 1.003 GB, free: 9.641 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.956e-05/0.007467, allocations: 20.05 kB / 1.003 GB, free: 9.621 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.505e-05/0.007512, allocations: 23.98 kB / 1.003 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.184e-05/0.007604, allocations: 48.7 kB / 1.003 GB, free: 9.547 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.007606, allocations: 0 / 1.003 GB, free: 9.547 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001207/0.007727, allocations: 73.55 kB / 1.003 GB, free: 9.469 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.007744, allocations: 12.09 kB / 1.003 GB, free: 9.457 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.007749, allocations: 0 / 1.003 GB, free: 9.457 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.007762, allocations: 0 / 1.003 GB, free: 9.457 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.845e-05/0.007861, allocations: 15.98 kB / 1.003 GB, free: 9.441 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.007866, allocations: 0 / 1.003 GB, free: 9.441 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.71e-05/0.007903, allocations: 7.984 kB / 1.003 GB, free: 9.434 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-06/0.007909, allocations: 0 / 1.003 GB, free: 9.434 MB / 0.9636 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 5.763e-05/0.007967, allocations: 109.8 kB / 1.004 GB, free: 9.316 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.007982, allocations: 3.938 kB / 1.004 GB, free: 9.312 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.594e-05/0.008018, allocations: 11.31 kB / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.00802, allocations: 0 / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.008026, allocations: 4 kB / 1.004 GB, free: 9.293 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.008028, allocations: 0 / 1.004 GB, free: 9.293 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.008145, allocations: 128.7 kB / 1.004 GB, free: 9.125 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.008147, allocations: 3.938 kB / 1.004 GB, free: 9.121 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.582e-05/0.008193, allocations: 15.92 kB / 1.004 GB, free: 9.105 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.008194, allocations: 0 / 1.004 GB, free: 9.105 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-06/0.008201, allocations: 0 / 1.004 GB, free: 9.105 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.008202, allocations: 0 / 1.004 GB, free: 9.105 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.008204, allocations: 7.984 kB / 1.004 GB, free: 9.098 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001478/0.008352, allocations: 167.5 kB / 1.004 GB, free: 8.918 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.04e-05/0.008362, allocations: 11.89 kB / 1.004 GB, free: 8.906 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.008377, allocations: 0 / 1.004 GB, free: 8.906 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.675e-05/0.008434, allocations: 7.984 kB / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.035e-05/0.008464, allocations: 0 / 1.004 GB, free: 8.898 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.008468, allocations: 4.234 kB / 1.004 GB, free: 8.895 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.074e-05/0.008499, allocations: 91.28 kB / 1.004 GB, free: 8.805 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.008499, allocations: 4.031 kB / 1.004 GB, free: 8.801 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001521/0.008651, allocations: 4 kB / 1.004 GB, free: 8.797 MB / 0.9636 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.0003763/0.009028, allocations: 0.6928 MB / 1.005 GB, free: 8.078 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001511/0.009179, allocations: 43.95 kB / 1.005 GB, free: 8.035 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.009181, allocations: 0 / 1.005 GB, free: 8.035 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.584e-05/0.009227, allocations: 24.02 kB / 1.005 GB, free: 8.012 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.009498, allocations: 18.16 kB / 1.005 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003852/0.009883, allocations: 130.5 kB / 1.005 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.954e-05/0.009933, allocations: 67.28 kB / 1.005 GB, free: 7.742 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.389e-05/0.009967, allocations: 4.062 kB / 1.005 GB, free: 7.738 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.695e-05/0.01001, allocations: 16.5 kB / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of SimCode: time 6.91e-07/0.01001, allocations: 0 / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01753/0.02754, allocations: 2.088 MB / 1.007 GB, free: 5.766 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.927/6.954, allocations: 12.05 kB / 1.007 GB, free: 5.754 MB / 0.9636 GB " [Timeout remaining time 293] (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/jenkins/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: 11.151728074066341]