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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.005486/0.005486, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001167/0.001167, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.596/2.596, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 71.88 kB / 1.054 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9299/0.9312, allocations: 157.4 MB / 1.207 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002113/0.9334, allocations: 0.5791 MB / 1.208 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003077/0.9337, allocations: 45.83 kB / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.047e-05/0.9338, allocations: 4 kB / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.776e-05/0.9338, allocations: 3.938 kB / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.991e-06/0.9338, allocations: 0 / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.9341, allocations: 11.92 kB / 1.208 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 4.799e-05/0.9342, allocations: 4 kB / 1.208 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.867e-05/0.9342, allocations: 7.984 kB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.724e-05/0.9342, allocations: 3.938 kB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.234e-05/0.9343, allocations: 0 / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.9343, allocations: 4 kB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.9344, allocations: 19.97 kB / 1.208 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.006e-05/0.9344, allocations: 4 kB / 1.208 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 1.92e-05/0.9345, allocations: 0 / 1.208 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 9.149e-05/0.9345, allocations: 15.98 kB / 1.208 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.9346, allocations: 0 / 1.208 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9346, allocations: 3.938 kB / 1.208 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.9346, allocations: 0 / 1.208 GB, free: 12.83 MB / 0.9356 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.0003017/0.9349, allocations: 315.6 kB / 1.208 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.9349, allocations: 8.031 kB / 1.208 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.293e-05/0.935, allocations: 38.75 kB / 1.208 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002579/0.9352, allocations: 20.91 kB / 1.208 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.9354, allocations: 160.4 kB / 1.209 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.9354, allocations: 384 / 1.209 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.9354, allocations: 384 / 1.209 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000152/0.9356, allocations: 42.23 kB / 1.209 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.9356, allocations: 3.938 kB / 1.209 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.9356, allocations: 0 / 1.209 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.9356, allocations: 3.984 kB / 1.209 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.253e-05/0.9357, allocations: 19.92 kB / 1.209 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001964/0.9359, allocations: 149.6 kB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 9.138e-05/0.936, allocations: 22.59 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.932e-05/0.9361, allocations: 12.92 kB / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.9361, allocations: 0 / 1.209 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.9361, allocations: 34.56 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.322e-06/0.9362, allocations: 0 / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0002752/0.9364, allocations: 53.55 kB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.9365, allocations: 51.41 kB / 1.209 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.934e-05/0.9366, allocations: 89.86 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.9366, allocations: 29.7 kB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.628e-05/0.9367, allocations: 80.14 kB / 1.209 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.725e-05/0.9367, allocations: 4.125 kB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.9368, allocations: 13.72 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.9369, allocations: 314.8 kB / 1.209 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.373e-05/0.937, allocations: 4 kB / 1.209 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.96e-05/0.937, allocations: 7.984 kB / 1.209 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.358e-05/0.9371, allocations: 16.84 kB / 1.209 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.9371, allocations: 8 kB / 1.209 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001412/0.9373, allocations: 45.53 kB / 1.209 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.9373, allocations: 4 kB / 1.209 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.9373, allocations: 3.938 kB / 1.209 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.9373, allocations: 4 kB / 1.209 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.315e-05/0.9374, allocations: 0 / 1.209 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.9374, allocations: 0 / 1.209 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.296e-05/0.9375, allocations: 11.98 kB / 1.209 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.9375, allocations: 32 / 1.21 GB, free: 11.05 MB / 0.9356 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 9.793e-05/0.9376, allocations: 109.8 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.9376, allocations: 0 / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.9376, allocations: 11.06 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.9376, allocations: 0 / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.9377, allocations: 0 / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.9377, allocations: 0 / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.9378, allocations: 145.7 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.9378, allocations: 0 / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.283e-05/0.9378, allocations: 8 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.9378, allocations: 0 / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.9379, allocations: 7.875 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.9379, allocations: 7.984 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.9379, allocations: 4 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001439/0.938, allocations: 65.06 kB / 1.21 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.859e-05/0.9381, allocations: 79.36 kB / 1.21 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.9381, allocations: 7.969 kB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.324e-05/0.9381, allocations: 7.984 kB / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.05e-05/0.9382, allocations: 0 / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-06/0.9382, allocations: 0 / 1.21 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.284e-05/0.9382, allocations: 75.28 kB / 1.21 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9382, allocations: 0 / 1.21 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001768/0.9384, allocations: 4 kB / 1.21 GB, free: 10.44 MB / 0.9356 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.0004555/0.9388, allocations: 0.6046 MB / 1.211 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000128/0.939, allocations: 15.98 kB / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.939, allocations: 8 kB / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.084e-05/0.939, allocations: 8.094 kB / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.9392, allocations: 0 / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003535/0.9395, allocations: 110.6 kB / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.9398, allocations: 0.6729 MB / 1.211 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.957e-05/0.9399, allocations: 4 kB / 1.211 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.448e-05/0.9399, allocations: 15.44 kB / 1.211 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.9399, allocations: 0 / 1.211 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.9575, allocations: 0.9524 MB / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.403/8.36, allocations: 9.422 kB / 1.212 GB, free: 8.039 MB / 0.9356 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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