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.001152/0.001152, 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.001176/0.001176, allocations: 198.3 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.273/1.273, 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 11.0.1-master/package.mo): time 2.514/2.514, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 70.03 kB / 0.8992 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2375, allocations: 157.4 MB / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.00158/0.2391, allocations: 0.5777 MB / 1.053 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002124/0.2393, allocations: 67.64 kB / 1.054 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.241e-05/0.2394, allocations: 0 / 1.054 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.148e-05/0.2394, allocations: 0 / 1.054 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.258e-06/0.2394, allocations: 0 / 1.054 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.2396, allocations: 19.98 kB / 1.054 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.241e-05/0.2396, allocations: 0 / 1.054 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.786e-05/0.2397, allocations: 4 kB / 1.054 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.272e-05/0.2397, allocations: 4 kB / 1.054 GB, free: 7.543 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 1.8e-05/0.2397, allocations: 0 / 1.054 GB, free: 7.543 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.386e-06/0.2397, allocations: 3.938 kB / 1.054 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.557e-05/0.2398, allocations: 15.98 kB / 1.054 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.024e-05/0.2398, allocations: 7.984 kB / 1.054 GB, free: 7.516 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.44e-05/0.2398, allocations: 3.984 kB / 1.054 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.789e-05/0.2399, allocations: 11.98 kB / 1.054 GB, free: 7.5 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2399, allocations: 4 kB / 1.054 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.2399, allocations: 0 / 1.054 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.24, allocations: 0 / 1.054 GB, free: 7.496 MB / 0.8106 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.0002231/0.2402, allocations: 321.2 kB / 1.054 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.2402, allocations: 12.66 kB / 1.054 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.795e-05/0.2403, allocations: 34.73 kB / 1.054 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002232/0.2405, allocations: 16.91 kB / 1.054 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.998e-05/0.2406, allocations: 164.4 kB / 1.054 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.846e-06/0.2406, allocations: 384 / 1.054 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-06/0.2406, allocations: 384 / 1.054 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.2407, allocations: 34.25 kB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.2407, allocations: 7.938 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.742e-06/0.2407, allocations: 0 / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.2408, allocations: 0 / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.148e-05/0.2408, allocations: 11.92 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001096/0.241, allocations: 153.7 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.231e-05/0.241, allocations: 18.61 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.2411, allocations: 12.91 kB / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.2411, allocations: 0 / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.2411, allocations: 34.56 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.2411, allocations: 0 / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0002046/0.2413, allocations: 57.55 kB / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.2414, allocations: 55.41 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.873e-05/0.2414, allocations: 89.86 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.307e-06/0.2414, allocations: 25.7 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 1.915e-05/0.2414, allocations: 80.14 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.2415, allocations: 0 / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/0.2415, allocations: 13.72 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.811e-05/0.2416, allocations: 318.9 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.468e-05/0.2416, allocations: 3.984 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.469e-05/0.2417, allocations: 4 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.583e-05/0.2418, allocations: 20.84 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.2418, allocations: 4 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000111/0.2419, allocations: 45.69 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.2419, allocations: 8 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.2419, allocations: 3.938 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.2419, allocations: 3.984 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.98e-05/0.242, allocations: 4 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.242, allocations: 0 / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.049e-05/0.242, allocations: 3.938 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.2421, allocations: 0 / 1.055 GB, free: 5.73 MB / 0.8106 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.536e-05/0.2421, allocations: 113.9 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.347e-06/0.2421, allocations: 3.984 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.159e-05/0.2422, allocations: 7.062 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.2422, allocations: 0 / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.2422, allocations: 0 / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.2422, allocations: 0 / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.909e-05/0.2422, allocations: 145.7 kB / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2423, allocations: 4 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.007e-05/0.2423, allocations: 3.984 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.2423, allocations: 3.984 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.2423, allocations: 11.94 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.2423, allocations: 0 / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2423, allocations: 0 / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.2425, allocations: 69.05 kB / 1.055 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.448e-05/0.2425, allocations: 77.39 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.2425, allocations: 7.938 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.184e-05/0.2425, allocations: 4.031 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.356e-06/0.2426, allocations: 0 / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.2426, allocations: 0 / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.014e-05/0.2426, allocations: 75.28 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2426, allocations: 0 / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001705/0.2428, allocations: 4 kB / 1.056 GB, free: 5.117 MB / 0.8106 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.0003383/0.2431, allocations: 0.6085 MB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001195/0.2432, allocations: 11.98 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2432, allocations: 0 / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.233e-05/0.2433, allocations: 7.984 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.2434, allocations: 9.438 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002861/0.2437, allocations: 122.6 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.2439, allocations: 0.6729 MB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.252e-05/0.2439, allocations: 4 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.254e-05/0.244, allocations: 7.438 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.244, allocations: 3.938 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.893/2.137, allocations: 0.9334 MB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/13.19, allocations: 9.625 kB / 1.058 GB, free: 2.707 MB / 0.8106 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) "" Variables in the reference:time,y Variables in the result:time,y