Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Utilities_Math_Functions_Examples_IsMonotonic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.IsMonotonic,fileNamePrefix="Buildings_9_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.00809/0.00809, allocations: 102.9 kB / 15.74 MB, free: 6.496 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.001868/0.001868, allocations: 195.6 kB / 16.68 MB, free: 6.375 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.599/2.599, allocations: 390.3 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 61.12 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.349, allocations: 140.4 MB / 1.088 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.IsMonotonic): time 0.002071/0.3512, allocations: 0.6032 MB / 1.088 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003891/0.3516, allocations: 63.78 kB / 1.088 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.638e-05/0.3516, allocations: 0 / 1.088 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.046e-05/0.3517, allocations: 12 kB / 1.088 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.932e-05/0.3517, allocations: 3.938 kB / 1.088 GB, free: 1.266 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003466/0.3521, allocations: 43.94 kB / 1.088 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.214e-05/0.3522, allocations: 19.98 kB / 1.088 GB, free: 1.203 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.559e-05/0.3522, allocations: 4 kB / 1.088 GB, free: 1.199 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.988e-05/0.3523, allocations: 11.97 kB / 1.088 GB, free: 1.188 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.3525, allocations: 63.89 kB / 1.088 GB, free: 1.125 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.3525, allocations: 4 kB / 1.088 GB, free: 1.121 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.3527, allocations: 47.89 kB / 1.088 GB, free: 1.074 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.349e-05/0.3527, allocations: 15.92 kB / 1.088 GB, free: 1.059 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.171e-05/0.3528, allocations: 19.86 kB / 1.088 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.3529, allocations: 68.02 kB / 1.088 GB, free: 0.9727 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3529, allocations: 0 / 1.088 GB, free: 0.9727 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3529, allocations: 0 / 1.088 GB, free: 0.9727 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.353, allocations: 0 / 1.088 GB, free: 0.9727 MB / 0.8419 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.0004226/0.3534, allocations: 363.3 kB / 1.089 GB, free: 0.5664 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3534, allocations: 12.03 kB / 1.089 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.252e-05/0.3535, allocations: 46.72 kB / 1.089 GB, free: 0.5 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/0.3536, allocations: 8.891 kB / 1.089 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.3537, allocations: 176.3 kB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.3537, allocations: 384 / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.3537, allocations: 4.375 kB / 1.089 GB, free: 284 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/0.354, allocations: 180.3 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.354, allocations: 4 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.354, allocations: 4 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.231e-05/0.3541, allocations: 19.98 kB / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.595e-05/0.3541, allocations: 39.84 kB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006499/0.3548, allocations: 0.9063 MB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.529e-05/0.3549, allocations: 177.4 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.876e-05/0.3549, allocations: 84.17 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.355, allocations: 83.27 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.355, allocations: 105.8 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 1.152e-06/0.355, allocations: 0 / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 8.467e-05/0.3551, allocations: 37.66 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001881/0.3553, allocations: 391.7 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/0.3555, allocations: 172.6 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.3555, allocations: 25.7 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.11e-05/0.3556, allocations: 159.5 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.061e-06/0.3557, allocations: 4 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/0.3557, allocations: 53.66 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.3558, allocations: 326.8 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.096e-05/0.3559, allocations: 23.98 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.3561, allocations: 222.5 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.3562, allocations: 189.8 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3563, allocations: 4 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002955/0.3566, allocations: 193.8 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.3566, allocations: 4 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.3566, allocations: 12.03 kB / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.3566, allocations: 7.938 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.3568, allocations: 39.92 kB / 1.092 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.3568, allocations: 11.92 kB / 1.092 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.91e-05/0.3569, allocations: 27.84 kB / 1.092 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.3569, allocations: 12 kB / 1.092 GB, free: 12.41 MB / 0.8575 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.0001281/0.357, allocations: 213 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.825e-05/0.3571, allocations: 112.9 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.663e-05/0.3572, allocations: 124.7 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.623e-05/0.3572, allocations: 180.2 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.635e-05/0.3573, allocations: 176.3 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.808e-05/0.3574, allocations: 180.2 kB / 1.093 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.3576, allocations: 421.2 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.652e-05/0.3576, allocations: 114.3 kB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.476e-05/0.3577, allocations: 105 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-05/0.3578, allocations: 180.2 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-05/0.3578, allocations: 180.2 kB / 1.094 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.775e-05/0.3579, allocations: 180.3 kB / 1.095 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.682e-05/0.358, allocations: 188.2 kB / 1.095 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001336/0.3581, allocations: 315.7 kB / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.903e-05/0.3582, allocations: 186.1 kB / 1.095 GB, free: 9.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.269e-05/0.3583, allocations: 192.1 kB / 1.095 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.614e-05/0.3584, allocations: 109.2 kB / 1.095 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.131e-05/0.3585, allocations: 180.3 kB / 1.096 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.934e-05/0.3585, allocations: 108.9 kB / 1.096 GB, free: 8.816 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.381e-05/0.3586, allocations: 121.9 kB / 1.096 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3586, allocations: 0 / 1.096 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003326/0.3589, allocations: 24 kB / 1.096 GB, free: 8.676 MB / 0.8575 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.0004521/0.3594, allocations: 0.8365 MB / 1.097 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001483/0.3596, allocations: 76.91 kB / 1.097 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3596, allocations: 0 / 1.097 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.095e-06/0.3596, allocations: 4 kB / 1.097 GB, free: 7.734 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.3599, allocations: 471.8 kB / 1.097 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004707/0.3604, allocations: 274.4 kB / 1.097 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.3607, allocations: 0.6968 MB / 1.098 GB, free: 6.238 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000205/0.3609, allocations: 56.58 kB / 1.098 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.3609, allocations: 19.44 kB / 1.098 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of SimCode: time 2.8e-07/0.3609, allocations: 0 / 1.098 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01964/0.3806, allocations: 2.942 MB / 1.101 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.66/8.041, allocations: 0 / 1.101 GB, free: 3.348 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_IsMonotonic.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.IsMonotonic_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_IsMonotonic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches