Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_11_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.001754/0.001754, allocations: 108 kB / 15.61 MB, free: 152 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.002086/0.002086, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.64/2.64, allocations: 469.8 MB / 0.7424 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 71.08 kB / 0.9087 GB, free: 34.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2647, allocations: 159.1 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.00161/0.2664, allocations: 0.5778 MB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002113/0.2666, allocations: 51.62 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.298e-05/0.2666, allocations: 3.938 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.215e-05/0.2666, allocations: 0 / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.958e-06/0.2666, allocations: 0 / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001877/0.2668, allocations: 19.92 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.446e-05/0.2669, allocations: 3.984 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.823e-05/0.2669, allocations: 11.97 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.067e-05/0.267, allocations: 4 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 1.69e-05/0.267, allocations: 4 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.514e-06/0.267, allocations: 0 / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.634e-05/0.2671, allocations: 19.98 kB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.554e-06/0.2671, allocations: 0 / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.249e-05/0.2671, allocations: 4 kB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 6.691e-05/0.2672, allocations: 11.97 kB / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2672, allocations: 0 / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2672, allocations: 0 / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.2672, allocations: 0 / 1.065 GB, free: 13.49 MB / 0.8262 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.000276/0.2675, allocations: 323.5 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.2675, allocations: 12.03 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.28e-05/0.2676, allocations: 30.75 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002226/0.2678, allocations: 16.91 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.555e-05/0.2679, allocations: 168.3 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.2679, allocations: 384 / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-06/0.2679, allocations: 384 / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.268, allocations: 38.25 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.2681, allocations: 7.938 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.2681, allocations: 0 / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-06/0.2681, allocations: 0 / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.108e-05/0.2682, allocations: 7.984 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001323/0.2683, allocations: 149.7 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.488e-05/0.2684, allocations: 26.53 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.712e-05/0.2684, allocations: 12.92 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.2685, allocations: 0 / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.2685, allocations: 38.55 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.2685, allocations: 0 / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0002056/0.2687, allocations: 45.62 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.2688, allocations: 55.41 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.538e-05/0.2688, allocations: 93.98 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.2688, allocations: 29.64 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.96e-05/0.2689, allocations: 84.12 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.2689, allocations: 0 / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.2689, allocations: 9.719 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.269, allocations: 318.8 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.244e-05/0.2691, allocations: 3.938 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.145e-05/0.2691, allocations: 11.98 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.648e-05/0.2692, allocations: 16.84 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2692, allocations: 0 / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001207/0.2694, allocations: 37.69 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2694, allocations: 8 kB / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.2694, allocations: 3.938 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.2694, allocations: 0 / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.363e-05/0.2695, allocations: 16.02 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.2695, allocations: 3.938 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.019e-05/0.2695, allocations: 0 / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.2695, allocations: 0 / 1.066 GB, free: 11.71 MB / 0.8262 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.001e-05/0.2696, allocations: 109.8 kB / 1.066 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.2696, allocations: 4 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.281e-05/0.2696, allocations: 11.06 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2696, allocations: 3.984 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.2697, allocations: 4 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-06/0.2697, allocations: 0 / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.197e-05/0.2698, allocations: 141.7 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.2698, allocations: 0 / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.994e-05/0.2698, allocations: 7.984 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.2698, allocations: 0 / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.2698, allocations: 3.938 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.2698, allocations: 4 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2698, allocations: 0 / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001393/0.27, allocations: 72.97 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.27, allocations: 81.38 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.27, allocations: 7.938 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.886e-05/0.2701, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.815e-06/0.2701, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.2701, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.175e-05/0.2701, allocations: 75.28 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2701, allocations: 4.031 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001641/0.2703, allocations: 4 kB / 1.067 GB, free: 11.1 MB / 0.8262 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.0004134/0.2707, allocations: 0.6007 MB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001243/0.2709, allocations: 19.95 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2709, allocations: 0 / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.975e-05/0.2709, allocations: 7.984 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.2711, allocations: 11.91 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002978/0.2714, allocations: 119.8 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.2716, allocations: 0.6768 MB / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.226e-05/0.2717, allocations: 4.125 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.14e-05/0.2717, allocations: 7.438 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2717, allocations: 0 / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.806/2.078, allocations: 0.918 MB / 1.069 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.39/16.47, allocations: 19.94 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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