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.001241/0.001241, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001234/0.001234, allocations: 195.2 kB / 16.26 MB, free: 6.621 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.218/1.218, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.129/2.129, allocations: 390.2 MB / 0.6644 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 67.89 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5104/0.5116, allocations: 140.4 MB / 0.9492 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001483/0.5131, allocations: 0.646 MB / 0.9499 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001842/0.5133, allocations: 50.78 kB / 0.9499 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.748e-06/0.5133, allocations: 0 / 0.9499 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.124e-05/0.5133, allocations: 0 / 0.9499 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.218e-06/0.5134, allocations: 0 / 0.9499 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002029/0.5136, allocations: 9.5 kB / 0.9499 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.039e-05/0.5136, allocations: 9.359 kB / 0.9499 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.384e-05/0.5136, allocations: 1.375 kB / 0.9499 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.161e-05/0.5137, allocations: 0 / 0.9499 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.566e-05/0.5137, allocations: 5.312 kB / 0.9499 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.544e-06/0.5137, allocations: 0 / 0.9499 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.928e-05/0.5138, allocations: 22.98 kB / 0.95 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.035e-06/0.5138, allocations: 3.984 kB / 0.95 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.319e-05/0.5138, allocations: 5.312 kB / 0.95 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.03e-05/0.5139, allocations: 13.47 kB / 0.95 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.5139, allocations: 0 / 0.95 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.173e-06/0.5139, allocations: 0 / 0.95 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.5139, allocations: 5.375 kB / 0.95 GB, free: 8.535 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.0001627/0.5141, allocations: 314.3 kB / 0.9503 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.5141, allocations: 9.625 kB / 0.9503 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.682e-05/0.5141, allocations: 32.12 kB / 0.9503 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.5143, allocations: 21.14 kB / 0.9504 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.841e-05/0.5144, allocations: 160.4 kB / 0.9505 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.914e-06/0.5144, allocations: 1.75 kB / 0.9505 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.5144, allocations: 4.375 kB / 0.9505 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.5145, allocations: 34.38 kB / 0.9505 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.5145, allocations: 3.938 kB / 0.9505 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-06/0.5145, allocations: 1.375 kB / 0.9506 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.5145, allocations: 0 / 0.9506 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.337e-05/0.5146, allocations: 13.42 kB / 0.9506 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.065e-05/0.5147, allocations: 147.1 kB / 0.9507 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.045e-05/0.5148, allocations: 26.69 kB / 0.9507 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.308e-05/0.5148, allocations: 11.55 kB / 0.9507 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.5148, allocations: 5.359 kB / 0.9507 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.235e-05/0.5148, allocations: 34.5 kB / 0.9508 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.5149, allocations: 1.375 kB / 0.9508 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001874/0.515, allocations: 56.66 kB / 0.9508 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.518e-05/0.5151, allocations: 51.41 kB / 0.9509 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.222e-05/0.5151, allocations: 93.84 kB / 0.951 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.062e-06/0.5151, allocations: 27.08 kB / 0.951 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.993e-06/0.5151, allocations: 80.14 kB / 0.9511 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.5151, allocations: 3.906 kB / 0.9511 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.237e-05/0.5152, allocations: 12.47 kB / 0.9511 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.092e-05/0.5152, allocations: 314.8 kB / 0.9514 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.183e-05/0.5152, allocations: 10.77 kB / 0.9514 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.418e-05/0.5153, allocations: 4.125 kB / 0.9514 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.011e-05/0.5154, allocations: 15.72 kB / 0.9514 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.5154, allocations: 0 / 0.9514 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 9.939e-05/0.5155, allocations: 47.25 kB / 0.9515 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.367e-06/0.5155, allocations: 4.219 kB / 0.9515 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.5155, allocations: 9.312 kB / 0.9515 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/0.5155, allocations: 0 / 0.9515 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.811e-05/0.5156, allocations: 6.734 kB / 0.9515 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.447e-06/0.5156, allocations: 0 / 0.9515 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.94e-05/0.5156, allocations: 1.375 kB / 0.9515 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.5156, allocations: 1.375 kB / 0.9515 GB, free: 6.863 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.42e-05/0.5157, allocations: 111.2 kB / 0.9516 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-06/0.5157, allocations: 0 / 0.9516 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.161e-05/0.5157, allocations: 16.42 kB / 0.9516 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.5157, allocations: 0 / 0.9516 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.5157, allocations: 0 / 0.9516 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.5157, allocations: 1.375 kB / 0.9516 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.743e-05/0.5158, allocations: 143.1 kB / 0.9517 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.5158, allocations: 0 / 0.9517 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.884e-05/0.5158, allocations: 10.72 kB / 0.9518 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.5158, allocations: 0 / 0.9518 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.5158, allocations: 5.312 kB / 0.9518 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.5158, allocations: 0 / 0.9518 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.5158, allocations: 7.938 kB / 0.9518 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001085/0.5159, allocations: 68.06 kB / 0.9518 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.165e-05/0.516, allocations: 83.34 kB / 0.9519 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.516, allocations: 5.312 kB / 0.9519 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.872e-05/0.516, allocations: 1.375 kB / 0.9519 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.524e-06/0.516, allocations: 0 / 0.9519 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.516, allocations: 5.406 kB / 0.9519 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.335e-06/0.516, allocations: 75.28 kB / 0.952 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.1e-08/0.516, allocations: 3.938 kB / 0.952 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001659/0.5162, allocations: 1.375 kB / 0.952 GB, free: 6.266 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.000228/0.5164, allocations: 0.608 MB / 0.9526 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001103/0.5166, allocations: 12.23 kB / 0.9526 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.5166, allocations: 0 / 0.9526 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.047e-05/0.5166, allocations: 8.109 kB / 0.9526 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.5168, allocations: 7.625 kB / 0.9526 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002489/0.517, allocations: 108.3 kB / 0.9527 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.371e-05/0.5171, allocations: 0.6742 MB / 0.9534 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.288e-05/0.5171, allocations: 1.156 kB / 0.9534 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.988e-05/0.5171, allocations: 8.469 kB / 0.9534 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.5171, allocations: 0 / 0.9534 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009134/0.5263, allocations: 0.8544 MB / 0.9542 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001223/0.5264, allocations: 194.6 kB / 0.9544 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/2.117, allocations: 0 / 0.9544 GB, free: 4.094 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