Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 104.9 kB / 16.35 MB, free: 5.902 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.001409/0.001409, allocations: 193.9 kB / 17.29 MB, free: 5.523 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.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.178/2.178, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 64.97 kB / 0.814 GB, free: 32.74 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2612, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001804/0.263, allocations: 0.5916 MB / 0.9517 GB, free: 7.48 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001535/0.2646, allocations: 1.25 MB / 0.9529 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.397e-05/0.2646, allocations: 0 / 0.9529 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.061e-05/0.2646, allocations: 4 kB / 0.9529 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.368e-06/0.2646, allocations: 0 / 0.9529 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003702/0.265, allocations: 67.75 kB / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 3.709e-05/0.2651, allocations: 4 kB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.307e-05/0.2651, allocations: 0 / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.283e-05/0.2651, allocations: 0 / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.962e-05/0.2652, allocations: 4 kB / 0.953 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.2652, allocations: 0 / 0.953 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.2654, allocations: 107.8 kB / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.327e-06/0.2654, allocations: 0 / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.2655, allocations: 11.94 kB / 0.9531 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.2656, allocations: 43.94 kB / 0.9531 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2656, allocations: 0 / 0.9531 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.884e-06/0.2656, allocations: 0 / 0.9531 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.266e-06/0.2656, allocations: 0 / 0.9531 GB, free: 5.977 MB / 0.7325 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.0002947/0.2659, allocations: 336.3 kB / 0.9535 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.266, allocations: 8.031 kB / 0.9535 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.736e-05/0.266, allocations: 0.9375 kB / 0.9535 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.075e-05/0.2661, allocations: 160.4 kB / 0.9536 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.2661, allocations: 4.375 kB / 0.9536 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.013e-06/0.2661, allocations: 384 / 0.9536 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.228e-05/0.2662, allocations: 38 kB / 0.9537 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.2662, allocations: 0 / 0.9537 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.2662, allocations: 3.938 kB / 0.9537 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.2662, allocations: 0 / 0.9537 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.076e-05/0.2663, allocations: 4 kB / 0.9537 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001606/0.2664, allocations: 145.7 kB / 0.9538 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 3.848e-05/0.2665, allocations: 18.58 kB / 0.9538 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.808e-05/0.2665, allocations: 12.94 kB / 0.9538 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006343/0.2671, allocations: 0.5622 MB / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.2672, allocations: 34.5 kB / 0.9544 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.2672, allocations: 0 / 0.9544 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.000147/0.2673, allocations: 45.62 kB / 0.9545 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.2674, allocations: 51.41 kB / 0.9545 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.178e-05/0.2674, allocations: 89.86 kB / 0.9546 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.2675, allocations: 25.7 kB / 0.9546 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.849e-05/0.2675, allocations: 88.08 kB / 0.9547 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/0.2675, allocations: 7.922 kB / 0.9547 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.2676, allocations: 13.72 kB / 0.9547 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000183/0.2678, allocations: 310.8 kB / 0.955 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.947e-06/0.2678, allocations: 4.125 kB / 0.955 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.46e-06/0.2678, allocations: 0 / 0.955 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.845e-05/0.2678, allocations: 12.8 kB / 0.9551 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2678, allocations: 3.984 kB / 0.9551 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.238e-05/0.2679, allocations: 37.7 kB / 0.9551 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.2679, allocations: 7.938 kB / 0.9551 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2679, allocations: 0 / 0.9551 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.2679, allocations: 0 / 0.9551 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.398e-05/0.268, allocations: 4 kB / 0.9551 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.268, allocations: 4.094 kB / 0.9551 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.069e-05/0.268, allocations: 0 / 0.9551 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.268, allocations: 0 / 0.9551 GB, free: 3.621 MB / 0.7325 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 6.167e-05/0.2681, allocations: 107.8 kB / 0.9552 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.188e-06/0.2681, allocations: 7.922 kB / 0.9552 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.68e-05/0.2682, allocations: 44.77 kB / 0.9553 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2682, allocations: 32 / 0.9553 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2682, allocations: 4 kB / 0.9553 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.2682, allocations: 0 / 0.9553 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.562e-05/0.2683, allocations: 145.7 kB / 0.9554 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.2683, allocations: 4 kB / 0.9554 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.498e-05/0.2683, allocations: 4 kB / 0.9554 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.2684, allocations: 3.938 kB / 0.9554 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-06/0.2684, allocations: 0 / 0.9554 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.2684, allocations: 0 / 0.9554 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2684, allocations: 0 / 0.9554 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.37e-05/0.2684, allocations: 65.12 kB / 0.9555 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.2685, allocations: 81.05 kB / 0.9556 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.097e-05/0.2685, allocations: 3.938 kB / 0.9556 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.198e-06/0.2685, allocations: 0 / 0.9556 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.222e-05/0.2685, allocations: 4 kB / 0.9556 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.2686, allocations: 0 / 0.9556 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.345e-05/0.2686, allocations: 75.28 kB / 0.9556 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.393e-06/0.2686, allocations: 0 / 0.9556 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001863/0.2688, allocations: 11.97 kB / 0.9556 GB, free: 2.969 MB / 0.7325 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.0001554/0.2689, allocations: 111.2 kB / 0.9557 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.767e-05/0.269, allocations: 4 kB / 0.9558 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.269, allocations: 0 / 0.9558 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.015e-05/0.269, allocations: 4 kB / 0.9558 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.2692, allocations: 11.88 kB / 0.9558 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001888/0.2694, allocations: 77.05 kB / 0.9558 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.2696, allocations: 0.6844 MB / 0.9565 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.551e-05/0.2696, allocations: 0 / 0.9565 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.479e-05/0.2697, allocations: 7.438 kB / 0.9565 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of SimCode: time 2.01e-07/0.2697, allocations: 0 / 0.9565 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of Templates: time 0.002077/0.2717, allocations: 304.8 kB / 0.9568 GB, free: 1.715 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches