Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.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.RegStep,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep",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.008039/0.008039, allocations: 97.58 kB / 15.73 MB, free: 5.988 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.001782/0.001782, allocations: 191.8 kB / 16.67 MB, free: 5.918 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.372/1.372, 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.7421 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 63.91 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3144, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001722/0.3161, allocations: 0.5908 MB / 1.22 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002638/0.3164, allocations: 51.8 kB / 1.22 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.788e-05/0.3164, allocations: 0 / 1.22 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.146e-05/0.3165, allocations: 0 / 1.22 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 1.284e-05/0.3165, allocations: 3.938 kB / 1.22 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.3167, allocations: 7.984 kB / 1.22 GB, free: 14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.235e-05/0.3168, allocations: 4 kB / 1.22 GB, free: 14 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.056e-05/0.3168, allocations: 8 kB / 1.22 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.47e-05/0.3169, allocations: 0 / 1.22 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.629e-05/0.3169, allocations: 7.969 kB / 1.22 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.988e-06/0.3169, allocations: 4 kB / 1.22 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.317, allocations: 15.98 kB / 1.22 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.518e-06/0.317, allocations: 3.938 kB / 1.22 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.631e-05/0.317, allocations: 0 / 1.22 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 8.722e-05/0.3171, allocations: 15.98 kB / 1.22 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.3171, allocations: 0 / 1.22 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.915e-06/0.3172, allocations: 0 / 1.22 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.896e-06/0.3172, allocations: 3.938 kB / 1.22 GB, free: 13.94 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000266/0.3174, allocations: 329 kB / 1.221 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.3175, allocations: 8.031 kB / 1.221 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.118e-05/0.3175, allocations: 34.75 kB / 1.221 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000259/0.3178, allocations: 16.91 kB / 1.221 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.734e-05/0.3179, allocations: 160.4 kB / 1.221 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.3179, allocations: 384 / 1.221 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.33e-05/0.3179, allocations: 4.359 kB / 1.221 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.3181, allocations: 42.25 kB / 1.221 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.3181, allocations: 3.938 kB / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.3181, allocations: 0 / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.3181, allocations: 0 / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.061e-05/0.3182, allocations: 11.98 kB / 1.221 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.3183, allocations: 145.6 kB / 1.221 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.131e-05/0.3184, allocations: 26.59 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.463e-05/0.3185, allocations: 14.77 kB / 1.221 GB, free: 13 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.3185, allocations: 0 / 1.221 GB, free: 13 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.3185, allocations: 30.56 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3185, allocations: 0 / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0002385/0.3188, allocations: 53.55 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.3188, allocations: 55.53 kB / 1.221 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.262e-05/0.3189, allocations: 89.86 kB / 1.221 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.3189, allocations: 29.7 kB / 1.221 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.736e-05/0.3189, allocations: 80.14 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.319, allocations: 0 / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.319, allocations: 17.7 kB / 1.222 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3191, allocations: 310.8 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.97e-05/0.3192, allocations: 4 kB / 1.222 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.302e-05/0.3192, allocations: 11.98 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.3193, allocations: 16.84 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3193, allocations: 0 / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001294/0.3195, allocations: 41.62 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.3195, allocations: 4 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3195, allocations: 3.938 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.3195, allocations: 8.094 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.961e-05/0.3196, allocations: 3.938 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3196, allocations: 3.984 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.644e-05/0.3197, allocations: 11.94 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.3197, allocations: 0 / 1.222 GB, free: 12.17 MB / 0.9825 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 (1): * Single equations (assignments): 1 * 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 6.761e-05/0.3197, allocations: 107.2 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.257e-06/0.3198, allocations: 0 / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.3198, allocations: 15.05 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3198, allocations: 8 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.3198, allocations: 0 / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3198, allocations: 0 / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.083e-05/0.3199, allocations: 149.7 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3199, allocations: 0 / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.583e-05/0.32, allocations: 4 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.32, allocations: 0 / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.32, allocations: 7.922 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.32, allocations: 0 / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.32, allocations: 0 / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001497/0.3202, allocations: 73.06 kB / 1.222 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.559e-05/0.3202, allocations: 77.11 kB / 1.222 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.3202, allocations: 3.938 kB / 1.222 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.646e-05/0.3203, allocations: 7.984 kB / 1.222 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.308e-06/0.3203, allocations: 0 / 1.222 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-06/0.3203, allocations: 0 / 1.222 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.385e-05/0.3203, allocations: 79.31 kB / 1.222 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3203, allocations: 0 / 1.222 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001893/0.3205, allocations: 4 kB / 1.222 GB, free: 11.55 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 (1): * Single equations (assignments): 1 * 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.0004154/0.3209, allocations: 0.5968 MB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001408/0.3211, allocations: 23.95 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3211, allocations: 4 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 4.636e-05/0.3212, allocations: 4 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.3213, allocations: 1.406 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003197/0.3216, allocations: 114.5 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002135/0.3219, allocations: 0.673 MB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.057e-05/0.3219, allocations: 4 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.583e-05/0.3219, allocations: 7.438 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of SimCode: time 1.844e-06/0.3219, allocations: 0 / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0161/0.338, allocations: 0.9566 MB / 1.225 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.566/7.904, allocations: 11.94 kB / 1.225 GB, free: 9.148 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches