Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001525/0.001525, 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.001937/0.001937, allocations: 196.1 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.797/2.797, allocations: 472.6 MB / 0.7451 GB, free: 4.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 65.47 kB / 0.9121 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3133, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001916/0.3153, allocations: 0.5839 MB / 1.069 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002491/0.3155, allocations: 47.8 kB / 1.069 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.646e-05/0.3156, allocations: 0 / 1.069 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.711e-05/0.3156, allocations: 3.938 kB / 1.069 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.528e-06/0.3156, allocations: 0 / 1.069 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.3159, allocations: 11.98 kB / 1.069 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.844e-05/0.3159, allocations: 4 kB / 1.069 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.601e-05/0.316, allocations: 3.984 kB / 1.069 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.721e-05/0.316, allocations: 11.98 kB / 1.069 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 1.835e-05/0.316, allocations: 0 / 1.069 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.738e-06/0.316, allocations: 0 / 1.069 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.446e-05/0.3161, allocations: 15.98 kB / 1.069 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.157e-06/0.3161, allocations: 4 kB / 1.069 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.81e-05/0.3162, allocations: 0 / 1.069 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.648e-05/0.3162, allocations: 11.98 kB / 1.069 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.3163, allocations: 0 / 1.069 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.032e-06/0.3163, allocations: 7.875 kB / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.3163, allocations: 7.984 kB / 1.069 GB, free: 9.727 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.0002677/0.3166, allocations: 319.5 kB / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.3166, allocations: 12.06 kB / 1.069 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002651/0.3169, allocations: 16.91 kB / 1.069 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.207e-05/0.317, allocations: 164.4 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.345e-06/0.317, allocations: 384 / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-06/0.317, allocations: 384 / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.3171, allocations: 38.25 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.3171, allocations: 4.188 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.3172, allocations: 7.938 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.3172, allocations: 0 / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.508e-05/0.3173, allocations: 7.984 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001339/0.3174, allocations: 141.7 kB / 1.07 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.703e-05/0.3175, allocations: 26.53 kB / 1.07 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.309e-05/0.3175, allocations: 16.92 kB / 1.07 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.3176, allocations: 3.984 kB / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.3176, allocations: 34.56 kB / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.3176, allocations: 0 / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.00023/0.3178, allocations: 49.55 kB / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.3179, allocations: 55.41 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.277e-05/0.3179, allocations: 93.98 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.318, allocations: 25.7 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.69e-05/0.318, allocations: 80.14 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.3181, allocations: 0 / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.3181, allocations: 17.7 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.3182, allocations: 314.8 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.721e-05/0.3183, allocations: 0 / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.111e-05/0.3183, allocations: 7.984 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.662e-05/0.3184, allocations: 20.91 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.3184, allocations: 0 / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001191/0.3185, allocations: 41.62 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.3186, allocations: 9.406 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.3186, allocations: 0 / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.3186, allocations: 3.938 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.227e-05/0.3187, allocations: 12.02 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.3187, allocations: 4 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.38e-05/0.3187, allocations: 0 / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.3187, allocations: 3.938 kB / 1.07 GB, free: 8 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.391e-05/0.3188, allocations: 107.6 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.886e-06/0.3188, allocations: 7.906 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.665e-05/0.3189, allocations: 7.062 kB / 1.071 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3189, allocations: 3.938 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3189, allocations: 4 kB / 1.071 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3189, allocations: 0 / 1.071 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.574e-05/0.319, allocations: 145.7 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.319, allocations: 4 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.869e-05/0.319, allocations: 4 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.319, allocations: 0 / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.319, allocations: 7.922 kB / 1.071 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3191, allocations: 4 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3191, allocations: 0 / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/0.3192, allocations: 69.06 kB / 1.071 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.365e-05/0.3192, allocations: 77.11 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.3193, allocations: 7.938 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.366e-05/0.3193, allocations: 7.969 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.364e-05/0.3193, allocations: 0 / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.3193, allocations: 0 / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.587e-05/0.3194, allocations: 77.45 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3194, allocations: 32 / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001876/0.3196, allocations: 8 kB / 1.071 GB, free: 7.375 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.000126/0.3197, allocations: 99.78 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001419/0.3198, allocations: 11.98 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3198, allocations: 0 / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.765e-05/0.3199, allocations: 11.92 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.32, allocations: 2.469 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002373/0.3203, allocations: 96.91 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.3205, allocations: 0.669 MB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.382e-05/0.3206, allocations: 0 / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.201e-05/0.3206, allocations: 7.438 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3206, allocations: 8 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of Templates: time 0.002023/0.3226, allocations: 229.8 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches