Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_10_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.001562/0.001562, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001982/0.001982, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.309/1.309, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.427/2.427, allocations: 437 MB / 0.7101 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001839, allocations: 63.91 kB / 0.8689 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.775/0.7768, allocations: 151.6 MB / 1.017 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001629/0.7785, allocations: 0.6451 MB / 1.018 GB, free: 2.035 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002104/0.7787, allocations: 55.72 kB / 1.018 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.357e-06/0.7787, allocations: 4 kB / 1.018 GB, free: 1.977 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.215e-05/0.7788, allocations: 0 / 1.018 GB, free: 1.977 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.03e-06/0.7788, allocations: 0 / 1.018 GB, free: 1.977 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002044/0.779, allocations: 8 kB / 1.018 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.342e-05/0.779, allocations: 3.984 kB / 1.018 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.583e-05/0.7791, allocations: 4 kB / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.135e-05/0.7791, allocations: 0 / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.86e-05/0.7791, allocations: 3.984 kB / 1.018 GB, free: 1.957 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 9.458e-06/0.7791, allocations: 0 / 1.018 GB, free: 1.957 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.921e-05/0.7792, allocations: 27.92 kB / 1.018 GB, free: 1.93 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 7.574e-06/0.7792, allocations: 4 kB / 1.018 GB, free: 1.926 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.713e-05/0.7793, allocations: 4 kB / 1.018 GB, free: 1.922 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.922e-05/0.7793, allocations: 15.97 kB / 1.018 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.7793, allocations: 0 / 1.018 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7793, allocations: 0 / 1.018 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.7793, allocations: 3.938 kB / 1.018 GB, free: 1.902 MB / 0.7637 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.0002334/0.7796, allocations: 311.6 kB / 1.018 GB, free: 1.547 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.7796, allocations: 8.031 kB / 1.018 GB, free: 1.539 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.71e-05/0.7797, allocations: 30.75 kB / 1.018 GB, free: 1.5 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002332/0.7799, allocations: 24.84 kB / 1.018 GB, free: 1.477 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.191e-05/0.78, allocations: 168.4 kB / 1.018 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.323e-06/0.78, allocations: 384 / 1.018 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.227e-06/0.78, allocations: 384 / 1.018 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001193/0.7801, allocations: 34.25 kB / 1.018 GB, free: 1.234 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.7801, allocations: 3.938 kB / 1.018 GB, free: 1.23 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-06/0.7802, allocations: 0 / 1.018 GB, free: 1.23 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-06/0.7802, allocations: 0 / 1.018 GB, free: 1.23 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.427e-05/0.7802, allocations: 19.92 kB / 1.018 GB, free: 1.211 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001076/0.7804, allocations: 145.7 kB / 1.018 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 6.83e-05/0.7804, allocations: 26.58 kB / 1.018 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.851e-05/0.7805, allocations: 8.922 kB / 1.018 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.7805, allocations: 3.984 kB / 1.018 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.688e-05/0.7805, allocations: 34.56 kB / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.7805, allocations: 0 / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1): time 0.0002067/0.7808, allocations: 57.47 kB / 1.019 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.7808, allocations: 51.41 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.871e-05/0.7808, allocations: 89.86 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.7808, allocations: 25.7 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.063e-05/0.7809, allocations: 84.12 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.7809, allocations: 4.125 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-05/0.7809, allocations: 13.72 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.081e-05/0.781, allocations: 310.8 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.655e-05/0.7811, allocations: 4 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.864e-05/0.7811, allocations: 11.98 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.146e-05/0.7812, allocations: 12.84 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.7812, allocations: 4.062 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001127/0.7813, allocations: 45.62 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.7813, allocations: 4 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.7813, allocations: 3.938 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.686e-06/0.7814, allocations: 0 / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.302e-05/0.7814, allocations: 7.984 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.7814, allocations: 0 / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.106e-05/0.7815, allocations: 0 / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.7815, allocations: 12.03 kB / 1.019 GB, free: 140 kB / 0.7637 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 5.834e-05/0.7815, allocations: 106.4 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.544e-06/0.7816, allocations: 3.938 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.741e-05/0.7816, allocations: 15.05 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.7816, allocations: 3.938 kB / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.7816, allocations: 0 / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.7816, allocations: 4.047 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.861e-05/0.7817, allocations: 141.7 kB / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.7817, allocations: 0 / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.323e-05/0.7818, allocations: 11.94 kB / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.7818, allocations: 0 / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.7818, allocations: 3.938 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.7818, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.7818, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001273/0.7819, allocations: 69.06 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.721e-05/0.7819, allocations: 83.34 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.782, allocations: 7.969 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.055e-05/0.782, allocations: 0 / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.246e-05/0.782, allocations: 4 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.782, allocations: 0 / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.246e-05/0.7821, allocations: 75.28 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7821, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001716/0.7822, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.7794 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.0003399/0.7826, allocations: 0.6085 MB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001222/0.7827, allocations: 11.98 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.7827, allocations: 0 / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.271e-05/0.7828, allocations: 12.08 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.7829, allocations: 4 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.7832, allocations: 118.6 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/0.7834, allocations: 0.669 MB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.642e-05/0.7834, allocations: 4 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.2e-05/0.7834, allocations: 11.5 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of SimCode: time 1.452e-06/0.7834, allocations: 0 / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009327/0.7928, allocations: 0.8572 MB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/0.793, allocations: 199.8 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.446, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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