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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001151/0.001151, allocations: 102.5 kB / 16.35 MB, free: 5.828 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.001147/0.001147, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.191/1.191, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.193/2.193, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 60.69 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2478, allocations: 153 MB / 1.027 GB, free: 2.02 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001485/0.2493, allocations: 0.5933 MB / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002021/0.2496, allocations: 51.84 kB / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.263e-05/0.2496, allocations: 0 / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.218e-05/0.2496, allocations: 0 / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.278e-06/0.2496, allocations: 0 / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.2498, allocations: 19.91 kB / 1.027 GB, free: 1.355 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 3.362e-05/0.2498, allocations: 0 / 1.027 GB, free: 1.355 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.669e-05/0.2499, allocations: 4 kB / 1.027 GB, free: 1.352 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.125e-05/0.2499, allocations: 0 / 1.027 GB, free: 1.352 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 1.6e-05/0.2499, allocations: 0 / 1.027 GB, free: 1.352 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.965e-06/0.2499, allocations: 4 kB / 1.027 GB, free: 1.348 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.798e-05/0.25, allocations: 23.97 kB / 1.027 GB, free: 1.324 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.574e-06/0.25, allocations: 0 / 1.027 GB, free: 1.324 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.223e-05/0.2501, allocations: 0 / 1.027 GB, free: 1.324 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.008e-05/0.2501, allocations: 19.97 kB / 1.027 GB, free: 1.305 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2501, allocations: 0 / 1.027 GB, free: 1.305 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.664e-06/0.2501, allocations: 3.938 kB / 1.027 GB, free: 1.301 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.2501, allocations: 0 / 1.027 GB, free: 1.301 MB / 0.795 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.0002334/0.2504, allocations: 316.8 kB / 1.028 GB, free: 0.9453 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.2504, allocations: 11.97 kB / 1.028 GB, free: 0.9336 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.2506, allocations: 24.84 kB / 1.028 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.405e-05/0.2507, allocations: 164.4 kB / 1.028 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.705e-06/0.2507, allocations: 384 / 1.028 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.782e-06/0.2507, allocations: 4.375 kB / 1.028 GB, free: 0.707 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.2509, allocations: 38.23 kB / 1.028 GB, free: 0.6641 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.2509, allocations: 3.938 kB / 1.028 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.2509, allocations: 0 / 1.028 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-06/0.2509, allocations: 0 / 1.028 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.267e-05/0.251, allocations: 11.98 kB / 1.028 GB, free: 0.6484 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001112/0.2511, allocations: 149.7 kB / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 6.492e-05/0.2512, allocations: 29 kB / 1.028 GB, free: 428 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.135e-05/0.2512, allocations: 8.844 kB / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.2512, allocations: 4.062 kB / 1.028 GB, free: 412 kB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.2512, allocations: 34.56 kB / 1.028 GB, free: 368 kB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.2513, allocations: 0 / 1.028 GB, free: 368 kB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0001927/0.2515, allocations: 49.61 kB / 1.028 GB, free: 312 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.2515, allocations: 55.34 kB / 1.028 GB, free: 244 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.848e-05/0.2515, allocations: 89.86 kB / 1.028 GB, free: 144 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 9.758e-06/0.2515, allocations: 25.7 kB / 1.028 GB, free: 112 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.288e-05/0.2516, allocations: 84.27 kB / 1.028 GB, free: 24 kB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.2516, allocations: 4 kB / 1.028 GB, free: 20 kB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.547e-05/0.2516, allocations: 13.72 kB / 1.028 GB, free: 0 / 0.795 GB Notification: Performance of setup shared object (initialization): time 8.943e-05/0.2517, allocations: 310.8 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.231e-05/0.2518, allocations: 7.984 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.098e-05/0.2518, allocations: 0 / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.371e-05/0.2519, allocations: 20.91 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.2519, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001064/0.252, allocations: 49.67 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.252, allocations: 4 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.252, allocations: 7.875 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.252, allocations: 0 / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.806e-05/0.2521, allocations: 7.938 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.2521, allocations: 0 / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.201e-05/0.2522, allocations: 7.984 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.2522, allocations: 4.031 kB / 1.029 GB, free: 15.57 MB / 0.8106 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.768e-05/0.2522, allocations: 113.8 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-06/0.2522, allocations: 0 / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.846e-05/0.2523, allocations: 7.062 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.2523, allocations: 0 / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.2523, allocations: 0 / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.2523, allocations: 0 / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.751e-05/0.2524, allocations: 149.7 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.2524, allocations: 3.938 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.272e-05/0.2524, allocations: 4 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.2524, allocations: 4 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.2524, allocations: 7.938 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.2524, allocations: 0 / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2525, allocations: 0 / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.2526, allocations: 65.05 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.973e-05/0.2526, allocations: 85.14 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.2526, allocations: 3.938 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.748e-05/0.2527, allocations: 0 / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.775e-06/0.2527, allocations: 0 / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.962e-06/0.2527, allocations: 7.984 kB / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.159e-05/0.2527, allocations: 79.28 kB / 1.029 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2527, allocations: 0 / 1.029 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001618/0.2529, allocations: 0 / 1.029 GB, free: 14.95 MB / 0.8106 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 9.118e-05/0.253, allocations: 99.25 kB / 1.029 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001156/0.2531, allocations: 11.98 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2531, allocations: 0 / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.857e-05/0.2531, allocations: 7.984 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001148/0.2533, allocations: 4 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001874/0.2535, allocations: 92.91 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/0.2536, allocations: 0.673 MB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.513e-05/0.2537, allocations: 3.984 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.959e-05/0.2537, allocations: 11.44 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of SimCode: time 1.293e-06/0.2537, allocations: 0 / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of Templates: time 0.001613/0.2553, allocations: 232.5 kB / 1.031 GB, free: 13.76 MB / 0.8106 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 -s cvode -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/jenkins1/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