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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.0009762/0.0009756, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007504/0.007504, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.346/1.346, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.662/2.662, allocations: 462.6 MB / 0.7364 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003256/0.0003256, allocations: 14.81 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2928, allocations: 159.6 MB / 1.059 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.0007383/0.2936, allocations: 330.8 kB / 1.059 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002429/0.2938, allocations: 63.78 kB / 1.059 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.366e-06/0.2938, allocations: 0 / 1.059 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.778e-06/0.2939, allocations: 0 / 1.059 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.847e-06/0.2939, allocations: 0 / 1.059 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001708/0.2941, allocations: 4 kB / 1.059 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.781e-05/0.2941, allocations: 4 kB / 1.059 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.695e-05/0.2941, allocations: 3.984 kB / 1.059 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.154e-05/0.2942, allocations: 0 / 1.059 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.057e-05/0.2942, allocations: 7.922 kB / 1.059 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.955e-06/0.2942, allocations: 4 kB / 1.059 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.835e-05/0.2943, allocations: 19.98 kB / 1.059 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.886e-06/0.2943, allocations: 4 kB / 1.059 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.556e-05/0.2944, allocations: 25.7 kB / 1.059 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.045e-05/0.2944, allocations: 11.98 kB / 1.059 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2944, allocations: 0 / 1.059 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.216e-06/0.2945, allocations: 7.922 kB / 1.059 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.2945, allocations: 0 / 1.059 GB, free: 4.324 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.0002137/0.2947, allocations: 319.6 kB / 1.06 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2947, allocations: 11.97 kB / 1.06 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.252e-05/0.2948, allocations: 30.75 kB / 1.06 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.295, allocations: 20.91 kB / 1.06 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.051e-05/0.2951, allocations: 164.4 kB / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.2951, allocations: 4.375 kB / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-06/0.2951, allocations: 384 / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.2953, allocations: 34.25 kB / 1.06 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2953, allocations: 3.938 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.2953, allocations: 0 / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.2953, allocations: 0 / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.045e-05/0.2954, allocations: 15.92 kB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001389/0.2955, allocations: 149.7 kB / 1.06 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.844e-05/0.2956, allocations: 22.59 kB / 1.06 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.06e-05/0.2957, allocations: 8.922 kB / 1.06 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.2957, allocations: 0 / 1.06 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.2958, allocations: 34.56 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.2958, allocations: 0 / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0002462/0.296, allocations: 57.55 kB / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.2961, allocations: 51.41 kB / 1.06 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.877e-05/0.2961, allocations: 89.86 kB / 1.06 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.2961, allocations: 25.7 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.563e-05/0.2962, allocations: 80.27 kB / 1.06 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.2962, allocations: 4 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.633e-05/0.2962, allocations: 9.719 kB / 1.06 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.2963, allocations: 322.8 kB / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.38e-05/0.2964, allocations: 0 / 1.061 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.112e-05/0.2964, allocations: 11.98 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.49e-05/0.2965, allocations: 12.86 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.2965, allocations: 4.062 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001301/0.2967, allocations: 45.61 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.2967, allocations: 4 kB / 1.061 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2967, allocations: 7.938 kB / 1.061 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.2967, allocations: 3.938 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.388e-05/0.2968, allocations: 0 / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.2968, allocations: 4 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.42e-05/0.2969, allocations: 7.922 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.2969, allocations: 4.031 kB / 1.061 GB, free: 2.555 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 6.029e-05/0.2969, allocations: 105.8 kB / 1.061 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-06/0.297, allocations: 4 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.62e-05/0.297, allocations: 11.06 kB / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.297, allocations: 3.984 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.297, allocations: 0 / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.297, allocations: 0 / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.805e-05/0.2971, allocations: 145.7 kB / 1.061 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2971, allocations: 0 / 1.061 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.978e-05/0.2971, allocations: 12 kB / 1.061 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.2971, allocations: 0 / 1.061 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.984e-06/0.2972, allocations: 3.938 kB / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.2972, allocations: 0 / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.2972, allocations: 11.97 kB / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001361/0.2973, allocations: 65.06 kB / 1.061 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.144e-05/0.2974, allocations: 81.42 kB / 1.061 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.2974, allocations: 3.938 kB / 1.061 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.006e-05/0.2974, allocations: 4 kB / 1.061 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.107e-05/0.2974, allocations: 3.984 kB / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.2974, allocations: 0 / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.052e-05/0.2975, allocations: 75.28 kB / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2975, allocations: 0 / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001797/0.2976, allocations: 4 kB / 1.061 GB, free: 1.938 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.0003883/0.298, allocations: 0.6085 MB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001204/0.2982, allocations: 7.984 kB / 1.062 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2982, allocations: 4 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.51e-05/0.2982, allocations: 8.094 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.2984, allocations: 6.469 kB / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003103/0.2987, allocations: 116.2 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001961/0.2989, allocations: 0.6731 MB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.916e-05/0.2989, allocations: 8.062 kB / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.326e-05/0.299, allocations: 7.438 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of SimCode: time 3.41e-07/0.299, allocations: 0 / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009638/0.3086, allocations: 0.7668 MB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/0.3088, allocations: 211.2 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.115, allocations: 3.125 kB / 1.064 GB, free: 15.5 MB / 0.8262 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