Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.RegStep,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_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.001123/0.001123, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 199.5 kB / 16.54 MB, free: 6.672 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.328/2.328, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 59.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6287/0.6301, allocations: 140.4 MB / 0.9497 GB, free: 9.344 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001603/0.6318, allocations: 0.5818 MB / 0.9503 GB, free: 8.898 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002238/0.632, allocations: 51.38 kB / 0.9503 GB, free: 8.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.796e-05/0.632, allocations: 4 kB / 0.9503 GB, free: 8.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.632, allocations: 0 / 0.9503 GB, free: 8.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.468e-06/0.6321, allocations: 0 / 0.9503 GB, free: 8.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002186/0.6323, allocations: 21.22 kB / 0.9504 GB, free: 8.84 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.584e-05/0.6323, allocations: 1.219 kB / 0.9504 GB, free: 8.84 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.331e-05/0.6324, allocations: 1.25 kB / 0.9504 GB, free: 8.84 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.432e-05/0.6324, allocations: 1.281 kB / 0.9504 GB, free: 8.84 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.1e-05/0.6324, allocations: 4.969 kB / 0.9504 GB, free: 8.836 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.468e-06/0.6324, allocations: 0 / 0.9504 GB, free: 8.836 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.482e-05/0.6325, allocations: 26.66 kB / 0.9504 GB, free: 8.82 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.866e-06/0.6325, allocations: 4 kB / 0.9504 GB, free: 8.816 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.517e-05/0.6326, allocations: 1.375 kB / 0.9504 GB, free: 8.816 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.643e-05/0.6326, allocations: 18.19 kB / 0.9504 GB, free: 8.805 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.6327, allocations: 0 / 0.9504 GB, free: 8.805 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6327, allocations: 0 / 0.9504 GB, free: 8.805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.6327, allocations: 0 / 0.9504 GB, free: 8.805 MB / 0.7169 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.0001948/0.6329, allocations: 315.3 kB / 0.9507 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.6329, allocations: 10.06 kB / 0.9507 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.994e-05/0.6329, allocations: 30.75 kB / 0.9508 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002463/0.6332, allocations: 22.59 kB / 0.9508 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.585e-05/0.6332, allocations: 160.4 kB / 0.9509 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.6333, allocations: 384 / 0.9509 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.6333, allocations: 1.906 kB / 0.9509 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.6334, allocations: 37.44 kB / 0.951 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.6334, allocations: 9.609 kB / 0.951 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.6334, allocations: 0 / 0.951 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.6334, allocations: 0 / 0.951 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.996e-05/0.6335, allocations: 17.3 kB / 0.951 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.894e-05/0.6336, allocations: 142.8 kB / 0.9511 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.97e-05/0.6337, allocations: 22.59 kB / 0.9512 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.138e-05/0.6338, allocations: 8.109 kB / 0.9512 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.6338, allocations: 5.031 kB / 0.9512 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.6338, allocations: 42.5 kB / 0.9512 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.6338, allocations: 1.062 kB / 0.9512 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002165/0.634, allocations: 48.55 kB / 0.9513 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.968e-05/0.6341, allocations: 51.41 kB / 0.9513 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.367e-05/0.6341, allocations: 94.55 kB / 0.9514 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.033e-06/0.6341, allocations: 25.7 kB / 0.9514 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.358e-06/0.6341, allocations: 81.95 kB / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.6341, allocations: 8.031 kB / 0.9515 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.6342, allocations: 10.94 kB / 0.9515 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.378e-05/0.6342, allocations: 320.2 kB / 0.9518 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.805e-05/0.6343, allocations: 2.625 kB / 0.9518 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.114e-05/0.6343, allocations: 6.984 kB / 0.9518 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.205e-05/0.6344, allocations: 19.23 kB / 0.9519 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.6344, allocations: 1.906 kB / 0.9519 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001215/0.6345, allocations: 41.73 kB / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.6346, allocations: 5.938 kB / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.6346, allocations: 3.938 kB / 0.9519 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.6346, allocations: 0 / 0.9519 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.515e-05/0.6347, allocations: 6.719 kB / 0.9519 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.6347, allocations: 1.094 kB / 0.9519 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.386e-05/0.6347, allocations: 5.016 kB / 0.9519 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.6347, allocations: 5.156 kB / 0.9519 GB, free: 7.129 MB / 0.7169 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 3.701e-05/0.6348, allocations: 111.1 kB / 0.952 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.554e-06/0.6348, allocations: 0 / 0.952 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.201e-05/0.6348, allocations: 8.375 kB / 0.952 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.6348, allocations: 0 / 0.952 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6348, allocations: 1.406 kB / 0.952 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.6348, allocations: 3.938 kB / 0.952 GB, free: 7 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.255e-05/0.6349, allocations: 147 kB / 0.9522 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.6349, allocations: 4 kB / 0.9522 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.095e-05/0.6349, allocations: 2.344 kB / 0.9522 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.6349, allocations: 1.281 kB / 0.9522 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.6349, allocations: 3.938 kB / 0.9522 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.6349, allocations: 1.188 kB / 0.9522 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.635, allocations: 3.984 kB / 0.9522 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001208/0.6351, allocations: 67.75 kB / 0.9523 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.288e-05/0.6351, allocations: 83.39 kB / 0.9523 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.6351, allocations: 5.25 kB / 0.9523 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.229e-05/0.6351, allocations: 5.234 kB / 0.9524 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.787e-06/0.6352, allocations: 0 / 0.9524 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.6352, allocations: 1.188 kB / 0.9524 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.898e-06/0.6352, allocations: 75.28 kB / 0.9524 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6352, allocations: 0 / 0.9524 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001762/0.6354, allocations: 1.281 kB / 0.9524 GB, free: 6.543 MB / 0.7169 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.0002683/0.6356, allocations: 0.6127 MB / 0.953 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001276/0.6358, allocations: 11.77 kB / 0.953 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.6358, allocations: 0 / 0.953 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.654e-05/0.6358, allocations: 16.72 kB / 0.9531 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.636, allocations: 1.281 kB / 0.9531 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002797/0.6363, allocations: 106.9 kB / 0.9532 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.381e-05/0.6363, allocations: 0.6821 MB / 0.9538 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.414e-05/0.6364, allocations: 5.469 kB / 0.9538 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.238e-05/0.6364, allocations: 8.5 kB / 0.9538 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.6364, allocations: 0 / 0.9538 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/0.652, allocations: 0.912 MB / 0.9547 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.14/7.792, allocations: 4 kB / 0.9547 GB, free: 4.5 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:time,y