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: translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 115.3 kB / 15.34 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.001925/0.001925, allocations: 188.8 kB / 16.25 MB, free: 6.586 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.502/1.502, allocations: 222.9 MB / 239.9 MB, free: 4.492 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.51/2.51, allocations: 390.2 MB / 0.6644 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 67.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9244/0.926, allocations: 140.4 MB / 0.9491 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.00191/0.928, allocations: 0.6447 MB / 0.9497 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002675/0.9283, allocations: 50.22 kB / 0.9498 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.787e-05/0.9283, allocations: 1.406 kB / 0.9498 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.48e-05/0.9283, allocations: 4 kB / 0.9498 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.382e-06/0.9283, allocations: 0 / 0.9498 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003538/0.9287, allocations: 8.062 kB / 0.9498 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.955e-05/0.9288, allocations: 2.469 kB / 0.9498 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.182e-05/0.9289, allocations: 5.297 kB / 0.9498 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.949e-05/0.9289, allocations: 0 / 0.9498 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.73e-05/0.9289, allocations: 5.156 kB / 0.9498 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.9289, allocations: 0 / 0.9498 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.9291, allocations: 18.14 kB / 0.9498 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.756e-05/0.9291, allocations: 1.125 kB / 0.9498 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.263e-05/0.9292, allocations: 11.92 kB / 0.9498 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.9293, allocations: 14.42 kB / 0.9499 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.9293, allocations: 0 / 0.9499 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.436e-06/0.9293, allocations: 1.188 kB / 0.9499 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.9293, allocations: 0 / 0.9499 GB, free: 8.539 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.0003503/0.9297, allocations: 318.8 kB / 0.9502 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/0.9297, allocations: 9.844 kB / 0.9502 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003217/0.93, allocations: 17.38 kB / 0.9502 GB, free: 8.172 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.717e-05/0.9301, allocations: 165.5 kB / 0.9503 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.9302, allocations: 4.359 kB / 0.9504 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-06/0.9302, allocations: 1.5 kB / 0.9504 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.9303, allocations: 33.53 kB / 0.9504 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.9303, allocations: 1.281 kB / 0.9504 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.9304, allocations: 3.938 kB / 0.9504 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.9304, allocations: 0 / 0.9504 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.351e-05/0.9305, allocations: 9.828 kB / 0.9504 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.9306, allocations: 159.1 kB / 0.9506 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.126e-05/0.9307, allocations: 22.34 kB / 0.9506 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.201e-05/0.9308, allocations: 7.922 kB / 0.9506 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.9308, allocations: 1.531 kB / 0.9506 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.9309, allocations: 30.56 kB / 0.9506 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.9309, allocations: 5.375 kB / 0.9506 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002684/0.9311, allocations: 60.27 kB / 0.9507 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.9312, allocations: 55.41 kB / 0.9507 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.096e-05/0.9312, allocations: 89.86 kB / 0.9508 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.268e-06/0.9312, allocations: 27.11 kB / 0.9508 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.252e-05/0.9313, allocations: 80.14 kB / 0.9509 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.9313, allocations: 3.906 kB / 0.9509 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.9313, allocations: 20.7 kB / 0.9509 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.762e-05/0.9314, allocations: 310.8 kB / 0.9512 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.282e-05/0.9314, allocations: 3.312 kB / 0.9512 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.361e-05/0.9315, allocations: 6.953 kB / 0.9512 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.424e-05/0.9316, allocations: 19.75 kB / 0.9513 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.9316, allocations: 0 / 0.9513 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001057/0.9317, allocations: 47.03 kB / 0.9513 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.9317, allocations: 5.125 kB / 0.9513 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.9317, allocations: 0 / 0.9513 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.9317, allocations: 5.531 kB / 0.9513 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.591e-05/0.9318, allocations: 2.719 kB / 0.9513 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.9318, allocations: 3.984 kB / 0.9513 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.137e-05/0.9318, allocations: 1.125 kB / 0.9513 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.9318, allocations: 1.406 kB / 0.9513 GB, free: 6.902 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 5.025e-05/0.9319, allocations: 111.4 kB / 0.9514 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.033e-06/0.9319, allocations: 0 / 0.9514 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.099e-05/0.932, allocations: 8.375 kB / 0.9514 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.932, allocations: 0 / 0.9514 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.932, allocations: 0 / 0.9514 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.932, allocations: 1.281 kB / 0.9514 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.511e-05/0.932, allocations: 149.7 kB / 0.9516 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.9321, allocations: 1.312 kB / 0.9516 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.845e-05/0.9321, allocations: 3.25 kB / 0.9516 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.9321, allocations: 4 kB / 0.9516 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.9321, allocations: 7.922 kB / 0.9516 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.9321, allocations: 1.656 kB / 0.9516 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.9321, allocations: 0 / 0.9516 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001164/0.9322, allocations: 62.97 kB / 0.9517 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.721e-05/0.9323, allocations: 81.11 kB / 0.9517 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.9323, allocations: 9.719 kB / 0.9517 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.903e-05/0.9323, allocations: 9.391 kB / 0.9518 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.178e-06/0.9323, allocations: 0 / 0.9518 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.9323, allocations: 5.219 kB / 0.9518 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.664e-05/0.9324, allocations: 75.28 kB / 0.9518 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9324, allocations: 0 / 0.9518 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001791/0.9326, allocations: 1.062 kB / 0.9518 GB, free: 6.309 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.00012/0.9327, allocations: 100.5 kB / 0.9519 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001508/0.9328, allocations: 16.8 kB / 0.9519 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.9328, allocations: 0 / 0.9519 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.015e-05/0.9329, allocations: 12.11 kB / 0.952 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001418/0.933, allocations: 7.328 kB / 0.952 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000235/0.9333, allocations: 77.44 kB / 0.952 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.9334, allocations: 0.6739 MB / 0.9527 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.608e-05/0.9335, allocations: 9.375 kB / 0.9527 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.325e-05/0.9335, allocations: 8.562 kB / 0.9527 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.9335, allocations: 0 / 0.9527 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of Templates: time 0.00212/0.9356, allocations: 227.5 kB / 0.9529 GB, free: 5.266 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches