Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_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.001252/0.001252, 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.001317/0.001317, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.231/1.231, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.147/2.147, allocations: 390.2 MB / 0.6647 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 75.89 kB / 0.8127 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5144/0.5156, allocations: 140.4 MB / 0.9497 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001625/0.5173, allocations: 0.5847 MB / 0.9503 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002091/0.5175, allocations: 46.39 kB / 0.9503 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.257e-05/0.5176, allocations: 0 / 0.9503 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.171e-05/0.5176, allocations: 0 / 0.9503 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.298e-06/0.5176, allocations: 1.344 kB / 0.9503 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.5178, allocations: 16.42 kB / 0.9504 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.203e-05/0.5178, allocations: 1.031 kB / 0.9504 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.962e-05/0.5179, allocations: 8.922 kB / 0.9504 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.191e-05/0.5179, allocations: 1.125 kB / 0.9504 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.907e-05/0.5179, allocations: 4.969 kB / 0.9504 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.856e-06/0.5179, allocations: 0 / 0.9504 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.75e-05/0.518, allocations: 19.33 kB / 0.9504 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.336e-06/0.518, allocations: 0 / 0.9504 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.434e-05/0.5181, allocations: 3.984 kB / 0.9504 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.929e-05/0.5181, allocations: 22.91 kB / 0.9504 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.5181, allocations: 0 / 0.9504 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.5181, allocations: 0 / 0.9504 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.5182, allocations: 1.438 kB / 0.9504 GB, free: 8.609 MB / 0.7169 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.0001729/0.5183, allocations: 310.2 kB / 0.9507 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.5184, allocations: 9.219 kB / 0.9507 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.38e-05/0.5184, allocations: 36.69 kB / 0.9508 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.5186, allocations: 21.03 kB / 0.9508 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.303e-05/0.5187, allocations: 164.4 kB / 0.9509 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.437e-06/0.5187, allocations: 1.562 kB / 0.9509 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.124e-06/0.5187, allocations: 4.312 kB / 0.9509 GB, free: 8 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.5188, allocations: 38.88 kB / 0.951 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.5188, allocations: 3.938 kB / 0.951 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.5188, allocations: 0 / 0.951 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.5189, allocations: 1.406 kB / 0.951 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.047e-05/0.5189, allocations: 8.703 kB / 0.951 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.374e-05/0.519, allocations: 146.9 kB / 0.9511 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.242e-05/0.5191, allocations: 26.56 kB / 0.9512 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.598e-05/0.5191, allocations: 16.44 kB / 0.9512 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.5192, allocations: 0 / 0.9512 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.372e-05/0.5192, allocations: 39.73 kB / 0.9512 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.5192, allocations: 0 / 0.9512 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.000201/0.5194, allocations: 45.56 kB / 0.9513 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.952e-05/0.5194, allocations: 59.53 kB / 0.9513 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.158e-05/0.5194, allocations: 89.86 kB / 0.9514 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.48e-06/0.5194, allocations: 26.98 kB / 0.9514 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.777e-06/0.5195, allocations: 80.14 kB / 0.9515 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.406e-05/0.5195, allocations: 7.891 kB / 0.9515 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.268e-05/0.5195, allocations: 12.06 kB / 0.9515 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.294e-05/0.5196, allocations: 312.1 kB / 0.9518 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.248e-05/0.5196, allocations: 6.312 kB / 0.9518 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.664e-05/0.5196, allocations: 11.52 kB / 0.9518 GB, free: 7 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.15e-05/0.5197, allocations: 20.34 kB / 0.9519 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.5197, allocations: 0 / 0.9519 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001077/0.5199, allocations: 38.47 kB / 0.9519 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.5199, allocations: 5 kB / 0.9519 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.5199, allocations: 3.938 kB / 0.9519 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.5199, allocations: 5.406 kB / 0.9519 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.2e-05/0.52, allocations: 6.609 kB / 0.9519 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.928e-06/0.52, allocations: 0 / 0.9519 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.086e-05/0.52, allocations: 1.281 kB / 0.9519 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.52, allocations: 1.344 kB / 0.9519 GB, free: 6.938 MB / 0.7169 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 3.674e-05/0.5201, allocations: 111.1 kB / 0.952 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.814e-06/0.5201, allocations: 4 kB / 0.952 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.201e-05/0.5201, allocations: 8.188 kB / 0.952 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.5201, allocations: 4 kB / 0.952 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.5201, allocations: 5.078 kB / 0.952 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.5201, allocations: 0 / 0.952 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.111e-05/0.5202, allocations: 146.8 kB / 0.9522 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.5202, allocations: 3.938 kB / 0.9522 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.951e-05/0.5202, allocations: 8.047 kB / 0.9522 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.5202, allocations: 0 / 0.9522 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.5202, allocations: 3.938 kB / 0.9522 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5202, allocations: 1.031 kB / 0.9522 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.5202, allocations: 0 / 0.9522 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001153/0.5204, allocations: 64.28 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.347e-05/0.5204, allocations: 87.3 kB / 0.9523 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.114e-05/0.5204, allocations: 7.922 kB / 0.9523 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.919e-05/0.5204, allocations: 1.688 kB / 0.9523 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.027e-06/0.5204, allocations: 1.031 kB / 0.9523 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.5205, allocations: 5.062 kB / 0.9524 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.458e-06/0.5205, allocations: 79.31 kB / 0.9524 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.1e-08/0.5205, allocations: 0 / 0.9524 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001675/0.5206, allocations: 0.9062 kB / 0.9524 GB, free: 6.336 MB / 0.7169 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.0002382/0.5209, allocations: 0.601 MB / 0.953 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000125/0.521, allocations: 16.27 kB / 0.953 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.521, allocations: 0 / 0.953 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.162e-05/0.5211, allocations: 11.55 kB / 0.953 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.5212, allocations: 3.688 kB / 0.953 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002785/0.5215, allocations: 110.9 kB / 0.9532 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.986e-05/0.5216, allocations: 0.6778 MB / 0.9538 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.23e-05/0.5216, allocations: 1.344 kB / 0.9538 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.188e-05/0.5216, allocations: 8.531 kB / 0.9538 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.5216, allocations: 0 / 0.9538 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01431/0.5359, allocations: 0.9213 MB / 0.9547 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.075/7.611, allocations: 9.281 kB / 0.9547 GB, free: 4.297 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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