Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.IsMonotonic,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_IsMonotonic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.IsMonotonic,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_IsMonotonic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007652/0.007652, allocations: 96.86 kB / 15.73 MB, free: 6.062 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.001711/0.001711, allocations: 195.8 kB / 16.68 MB, free: 5.98 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.824/2.824, allocations: 469.4 MB / 0.7422 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 68.09 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3181, allocations: 159.1 MB / 1.22 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.IsMonotonic): time 0.001795/0.3199, allocations: 0.6108 MB / 1.22 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003393/0.3203, allocations: 71.78 kB / 1.22 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.302e-05/0.3203, allocations: 0 / 1.22 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.151e-05/0.3203, allocations: 7.984 kB / 1.22 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.084e-05/0.3204, allocations: 7.938 kB / 1.22 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.3207, allocations: 39.95 kB / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.866e-05/0.3208, allocations: 27.91 kB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.306e-05/0.3209, allocations: 0 / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.521e-05/0.3209, allocations: 15.98 kB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.3211, allocations: 67.88 kB / 1.221 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.3211, allocations: 0 / 1.221 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.3212, allocations: 43.95 kB / 1.221 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.365e-05/0.3213, allocations: 8 kB / 1.221 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.473e-05/0.3213, allocations: 23.8 kB / 1.221 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.3214, allocations: 71.72 kB / 1.221 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3215, allocations: 0 / 1.221 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3215, allocations: 0 / 1.221 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.3215, allocations: 0 / 1.221 GB, free: 13.63 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0003623/0.3218, allocations: 371.3 kB / 1.221 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3219, allocations: 8.031 kB / 1.221 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/0.3219, allocations: 42.73 kB / 1.221 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.632e-05/0.322, allocations: 4.891 kB / 1.221 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.822e-05/0.3221, allocations: 176.3 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.3221, allocations: 384 / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.3221, allocations: 4.375 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.3224, allocations: 185.3 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3224, allocations: 0 / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.3224, allocations: 0 / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-05/0.3225, allocations: 27.92 kB / 1.222 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.355e-05/0.3225, allocations: 35.91 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006636/0.3232, allocations: 0.9062 MB / 1.222 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.305e-05/0.3233, allocations: 173.1 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.681e-05/0.3233, allocations: 85.98 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.3234, allocations: 75.28 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/0.3234, allocations: 105.8 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=0): time 1.102e-06/0.3234, allocations: 0 / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of matching and sorting (n=0): time 9.085e-05/0.3235, allocations: 41.59 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.3237, allocations: 387.7 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.3238, allocations: 167.2 kB / 1.223 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.3239, allocations: 33.64 kB / 1.223 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.566e-05/0.3239, allocations: 155.5 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.524e-06/0.324, allocations: 7.984 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.361e-05/0.324, allocations: 53.66 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.988e-05/0.3241, allocations: 318.8 kB / 1.224 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.124e-05/0.3242, allocations: 27.97 kB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.3244, allocations: 228.6 kB / 1.224 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000202/0.3246, allocations: 201.7 kB / 1.224 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3246, allocations: 7.938 kB / 1.224 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000333/0.3249, allocations: 193.8 kB / 1.225 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.325, allocations: 4 kB / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/0.325, allocations: 8 kB / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.325, allocations: 7.938 kB / 1.225 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/0.3251, allocations: 39.92 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.3252, allocations: 4 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.3253, allocations: 35.83 kB / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.3253, allocations: 11.98 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (21): * Single equations (assignments): 21 * 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 0.0001431/0.3254, allocations: 217.9 kB / 1.225 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.914e-05/0.3255, allocations: 116.9 kB / 1.225 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.814e-05/0.3256, allocations: 116.8 kB / 1.225 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.758e-05/0.3257, allocations: 180.2 kB / 1.225 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.96e-05/0.3257, allocations: 180.2 kB / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.087e-05/0.3258, allocations: 176.3 kB / 1.226 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.3261, allocations: 425.2 kB / 1.226 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-05/0.3261, allocations: 105 kB / 1.226 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.509e-05/0.3262, allocations: 112.9 kB / 1.226 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.057e-05/0.3262, allocations: 176.3 kB / 1.226 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/0.3263, allocations: 180.2 kB / 1.227 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.636e-05/0.3264, allocations: 184.2 kB / 1.227 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.019e-05/0.3264, allocations: 184.3 kB / 1.227 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.3266, allocations: 311.9 kB / 1.227 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.856e-05/0.3267, allocations: 194 kB / 1.227 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.322e-05/0.3268, allocations: 184.2 kB / 1.228 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.101e-05/0.3269, allocations: 113 kB / 1.228 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.355e-05/0.327, allocations: 184.2 kB / 1.228 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.3271, allocations: 101 kB / 1.228 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.483e-05/0.3271, allocations: 117.7 kB / 1.228 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.51e-07/0.3271, allocations: 0 / 1.228 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003442/0.3275, allocations: 28 kB / 1.228 GB, free: 5.34 MB / 0.9825 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 (0): * Single equations (assignments): 0 * 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.0005133/0.328, allocations: 0.836 MB / 1.229 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001756/0.3282, allocations: 76.59 kB / 1.229 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3282, allocations: 448 / 1.229 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.146e-06/0.3282, allocations: 4 kB / 1.229 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.3286, allocations: 467.6 kB / 1.229 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005108/0.3291, allocations: 286 kB / 1.23 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.3294, allocations: 0.6968 MB / 1.23 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002093/0.3296, allocations: 48.61 kB / 1.23 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.66e-05/0.3297, allocations: 27.42 kB / 1.231 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of SimCode: time 3.5e-07/0.3297, allocations: 0 / 1.231 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.3491, allocations: 2.931 MB / 1.233 GB, free: 16 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.544/7.893, allocations: 7.938 kB / 1.233 GB, free: 8 kB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.IsMonotonic_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_IsMonotonic.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.IsMonotonic_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_IsMonotonic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches