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.001447/0.001447, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001271/0.001271, allocations: 193.7 kB / 16.14 MB, free: 6.699 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.293/1.293, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.575/2.575, allocations: 461.8 MB / 0.7342 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002314/0.002314, allocations: 66.56 kB / 0.8985 GB, free: 36.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2731, allocations: 157.4 MB / 1.052 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001995/0.2751, allocations: 0.6502 MB / 1.053 GB, free: 7.562 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002773/0.2754, allocations: 63.78 kB / 1.053 GB, free: 7.5 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.158e-05/0.2755, allocations: 0 / 1.053 GB, free: 7.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.2755, allocations: 0 / 1.053 GB, free: 7.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.861e-06/0.2755, allocations: 4 kB / 1.053 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.2757, allocations: 19.91 kB / 1.053 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.493e-05/0.2758, allocations: 0 / 1.053 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.831e-05/0.2758, allocations: 0 / 1.053 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.744e-05/0.2758, allocations: 4 kB / 1.053 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.232e-05/0.2759, allocations: 0 / 1.053 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.2759, allocations: 0 / 1.053 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.088e-05/0.276, allocations: 15.98 kB / 1.053 GB, free: 7.457 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.017e-06/0.276, allocations: 0 / 1.053 GB, free: 7.457 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.615e-05/0.276, allocations: 4 kB / 1.053 GB, free: 7.453 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.797e-05/0.2761, allocations: 23.95 kB / 1.053 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2761, allocations: 0 / 1.053 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.01e-07/0.2761, allocations: 0 / 1.053 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.2761, allocations: 0 / 1.053 GB, free: 7.43 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.0002537/0.2764, allocations: 315.6 kB / 1.053 GB, free: 7.07 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.2764, allocations: 15.97 kB / 1.053 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.174e-05/0.2765, allocations: 34.73 kB / 1.053 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/0.2767, allocations: 20.91 kB / 1.053 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.665e-05/0.2768, allocations: 164.4 kB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.2769, allocations: 384 / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.676e-06/0.2769, allocations: 384 / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.277, allocations: 38.19 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.277, allocations: 7.938 kB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.277, allocations: 3.984 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.277, allocations: 0 / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.767e-05/0.2771, allocations: 7.984 kB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001303/0.2773, allocations: 153.7 kB / 1.054 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.393e-05/0.2774, allocations: 18.61 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.441e-05/0.2774, allocations: 12.91 kB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.2774, allocations: 0 / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.2775, allocations: 42.5 kB / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.2775, allocations: 0 / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0002282/0.2777, allocations: 45.62 kB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.2778, allocations: 63.33 kB / 1.054 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.875e-05/0.2778, allocations: 93.86 kB / 1.054 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.2778, allocations: 25.7 kB / 1.054 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.47e-05/0.2779, allocations: 80.14 kB / 1.054 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.2779, allocations: 0 / 1.054 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.2779, allocations: 9.844 kB / 1.054 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.278, allocations: 318.8 kB / 1.054 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.877e-05/0.2781, allocations: 3.984 kB / 1.054 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.949e-05/0.2781, allocations: 4 kB / 1.054 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.774e-05/0.2782, allocations: 24.78 kB / 1.054 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2782, allocations: 0 / 1.054 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001234/0.2784, allocations: 41.75 kB / 1.054 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.2784, allocations: 9.406 kB / 1.054 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2784, allocations: 3.938 kB / 1.054 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.2784, allocations: 0 / 1.054 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.465e-05/0.2785, allocations: 7.984 kB / 1.054 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.2785, allocations: 0 / 1.054 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.339e-05/0.2786, allocations: 3.938 kB / 1.054 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.2786, allocations: 0 / 1.054 GB, free: 5.656 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 7.251e-05/0.2786, allocations: 109.9 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.859e-06/0.2787, allocations: 7.984 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/0.2787, allocations: 7.062 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2787, allocations: 0 / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2787, allocations: 3.938 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.2787, allocations: 0 / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.311e-05/0.2788, allocations: 145.7 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2788, allocations: 0 / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.643e-05/0.2789, allocations: 11.98 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.2789, allocations: 0 / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.2789, allocations: 7.938 kB / 1.055 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.2789, allocations: 4 kB / 1.055 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2789, allocations: 0 / 1.055 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001415/0.2791, allocations: 61.11 kB / 1.055 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.06e-05/0.2791, allocations: 77.39 kB / 1.055 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.2791, allocations: 11.94 kB / 1.055 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.478e-05/0.2792, allocations: 4.031 kB / 1.055 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.31e-05/0.2792, allocations: 0 / 1.055 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-06/0.2792, allocations: 0 / 1.055 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.037e-05/0.2792, allocations: 75.28 kB / 1.055 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2792, allocations: 0 / 1.055 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001802/0.2794, allocations: 4 kB / 1.055 GB, free: 5.043 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.0004079/0.2798, allocations: 0.6123 MB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001352/0.28, allocations: 11.98 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.28, allocations: 0 / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.647e-05/0.28, allocations: 11.92 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.2802, allocations: 3.938 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003181/0.2805, allocations: 120.4 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.2807, allocations: 0.6731 MB / 1.056 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.634e-05/0.2807, allocations: 0 / 1.056 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.379e-05/0.2807, allocations: 7.438 kB / 1.056 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of SimCode: time 4.51e-07/0.2807, allocations: 0 / 1.056 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009263/0.29, allocations: 0.825 MB / 1.057 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/0.2902, allocations: 211.3 kB / 1.057 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.595/1.885, allocations: 0 / 1.057 GB, free: 2.512 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