Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_10_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.001202/0.001202, 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.001257/0.001258, allocations: 195.2 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.258/1.258, 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 10.1.1-maint.10.0.x/package.mo): time 2.421/2.421, allocations: 437 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 71.89 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5217/0.523, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001677/0.5247, allocations: 0.5765 MB / 1.018 GB, free: 1.895 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002212/0.5249, allocations: 55.72 kB / 1.018 GB, free: 1.84 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.31e-05/0.5249, allocations: 0 / 1.018 GB, free: 1.84 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.167e-05/0.525, allocations: 0 / 1.018 GB, free: 1.84 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.478e-06/0.525, allocations: 0 / 1.018 GB, free: 1.84 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001996/0.5252, allocations: 23.92 kB / 1.018 GB, free: 1.816 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.223e-05/0.5252, allocations: 0 / 1.018 GB, free: 1.816 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.481e-05/0.5253, allocations: 4 kB / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.426e-05/0.5253, allocations: 7.984 kB / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.689e-05/0.5253, allocations: 0 / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 8.115e-06/0.5253, allocations: 0 / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.555e-05/0.5254, allocations: 15.98 kB / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.679e-06/0.5254, allocations: 4 kB / 1.018 GB, free: 1.785 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.308e-05/0.5254, allocations: 0 / 1.018 GB, free: 1.785 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.308e-05/0.5255, allocations: 15.97 kB / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.5255, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5255, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.5255, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.7637 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.00022/0.5258, allocations: 311.6 kB / 1.018 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.5258, allocations: 12.06 kB / 1.018 GB, free: 1.402 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.166e-05/0.5259, allocations: 42.67 kB / 1.018 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002282/0.5261, allocations: 20.84 kB / 1.018 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.174e-05/0.5262, allocations: 160.4 kB / 1.019 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.697e-06/0.5262, allocations: 384 / 1.019 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.386e-06/0.5262, allocations: 384 / 1.019 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.5263, allocations: 46.19 kB / 1.019 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.5263, allocations: 3.938 kB / 1.019 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.5263, allocations: 0 / 1.019 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.5264, allocations: 0 / 1.019 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.559e-05/0.5264, allocations: 7.984 kB / 1.019 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001162/0.5266, allocations: 149.7 kB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 6.993e-05/0.5266, allocations: 22.61 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.174e-05/0.5267, allocations: 16.84 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/0.5267, allocations: 0 / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.5268, allocations: 34.56 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.5268, allocations: 0 / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1): time 0.0002177/0.527, allocations: 49.53 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.527, allocations: 63.52 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.685e-05/0.5271, allocations: 89.86 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.5271, allocations: 25.7 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.036e-05/0.5271, allocations: 84.12 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.5271, allocations: 0 / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.041e-05/0.5272, allocations: 13.72 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.193e-05/0.5272, allocations: 310.8 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.862e-05/0.5273, allocations: 3.984 kB / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.629e-05/0.5273, allocations: 11.94 kB / 1.02 GB, free: 96 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.014e-05/0.5274, allocations: 20.84 kB / 1.02 GB, free: 72 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.5274, allocations: 0 / 1.02 GB, free: 72 kB / 0.7637 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001198/0.5276, allocations: 37.69 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.5276, allocations: 8 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.5276, allocations: 3.938 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.5276, allocations: 4.094 kB / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.656e-05/0.5277, allocations: 7.984 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.5277, allocations: 0 / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.397e-05/0.5277, allocations: 4 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.5278, allocations: 0 / 1.02 GB, free: 0 / 0.7637 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.994e-05/0.5278, allocations: 113.9 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.03e-05/0.5278, allocations: 7.922 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.449e-05/0.5279, allocations: 7.062 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.5279, allocations: 7.984 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.5279, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.5279, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.682e-05/0.528, allocations: 145.7 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.528, allocations: 7.938 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.285e-05/0.528, allocations: 3.984 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.528, allocations: 0 / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.5281, allocations: 7.938 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.5281, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5281, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001451/0.5282, allocations: 69.11 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.023e-05/0.5283, allocations: 79.36 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.5283, allocations: 7.938 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.031e-05/0.5283, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.251e-05/0.5283, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.5283, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.303e-05/0.5284, allocations: 83.25 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5284, allocations: 0 / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001695/0.5285, allocations: 4 kB / 1.02 GB, free: 15.37 MB / 0.7794 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.0003555/0.5289, allocations: 0.6007 MB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000133/0.529, allocations: 19.89 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.5291, allocations: 0 / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.767e-05/0.5291, allocations: 11.92 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.5292, allocations: 3.609 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003278/0.5296, allocations: 118.6 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/0.5298, allocations: 0.669 MB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.384e-05/0.5298, allocations: 4.125 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.198e-05/0.5298, allocations: 7.438 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.5298, allocations: 0 / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8655/1.395, allocations: 0.9299 MB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/11.97, allocations: 16.8 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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