Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Splice.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.Examples.Splice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|splice.x|splice.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Splice") translateModel(Buildings.Utilities.Math.Examples.Splice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|splice.x|splice.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Splice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.0009543/0.0009543, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.189/1.189, allocations: 222.9 MB / 241 MB, free: 14.99 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 1.978/1.978, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 68.88 kB / 0.814 GB, free: 32.58 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2396, allocations: 140.4 MB / 0.9511 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Splice): time 0.00266/0.2423, allocations: 1.505 MB / 0.9526 GB, free: 6.566 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009691/0.2433, allocations: 0.6436 MB / 0.9532 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.384e-05/0.2433, allocations: 0 / 0.9532 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.843e-05/0.2434, allocations: 3.938 kB / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.032e-05/0.2434, allocations: 7.922 kB / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.2437, allocations: 75.73 kB / 0.9533 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.329e-05/0.2438, allocations: 39.86 kB / 0.9533 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.411e-05/0.2439, allocations: 19.98 kB / 0.9533 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.172e-05/0.244, allocations: 19.92 kB / 0.9534 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.028e-05/0.2441, allocations: 15.92 kB / 0.9534 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.2441, allocations: 4 kB / 0.9534 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.2442, allocations: 99.89 kB / 0.9535 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.247e-05/0.2443, allocations: 7.922 kB / 0.9535 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.659e-05/0.2443, allocations: 19.88 kB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.2444, allocations: 79.83 kB / 0.9536 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2445, allocations: 4 kB / 0.9536 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2445, allocations: 0 / 0.9536 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.787e-06/0.2445, allocations: 8 kB / 0.9536 GB, free: 5.516 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003817/0.2449, allocations: 359.3 kB / 0.9539 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.2449, allocations: 8.031 kB / 0.9539 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.2449, allocations: 8.844 kB / 0.954 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.2451, allocations: 176.2 kB / 0.9541 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.2451, allocations: 384 / 0.9541 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.2451, allocations: 8.375 kB / 0.9541 GB, free: 4.883 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.2452, allocations: 50 kB / 0.9542 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.2452, allocations: 7.938 kB / 0.9542 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-06/0.2453, allocations: 4 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.2453, allocations: 0 / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.49e-05/0.2454, allocations: 31.95 kB / 0.9542 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003343/0.2457, allocations: 288.7 kB / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.821e-05/0.2458, allocations: 26.58 kB / 0.9545 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.536e-05/0.2458, allocations: 24.91 kB / 0.9545 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00049/0.2463, allocations: 0.5505 MB / 0.9551 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.2464, allocations: 34.56 kB / 0.9551 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.2464, allocations: 0 / 0.9551 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0002273/0.2466, allocations: 77.55 kB / 0.9552 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.2467, allocations: 51.41 kB / 0.9552 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.224e-05/0.2467, allocations: 122.2 kB / 0.9554 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.2468, allocations: 29.7 kB / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.254e-05/0.2468, allocations: 88.08 kB / 0.9555 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.2468, allocations: 7.906 kB / 0.9555 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.2469, allocations: 17.7 kB / 0.9555 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.134e-05/0.247, allocations: 318.8 kB / 0.9558 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.797e-05/0.247, allocations: 12.03 kB / 0.9558 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.798e-05/0.2471, allocations: 11.98 kB / 0.9558 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.602e-05/0.2471, allocations: 28.78 kB / 0.9558 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2471, allocations: 0 / 0.9558 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001017/0.2472, allocations: 53.69 kB / 0.9559 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.2473, allocations: 4 kB / 0.9559 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.2473, allocations: 0 / 0.9559 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.2473, allocations: 4.094 kB / 0.9559 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.17e-05/0.2473, allocations: 11.98 kB / 0.9559 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.2474, allocations: 0 / 0.9559 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.137e-05/0.2474, allocations: 3.906 kB / 0.9559 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.2474, allocations: 0 / 0.9559 GB, free: 2.781 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 (2): * Single equations (assignments): 2 * 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.224e-05/0.2475, allocations: 117.8 kB / 0.956 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.567e-05/0.2475, allocations: 7.984 kB / 0.956 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.2477, allocations: 61.16 kB / 0.9561 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2477, allocations: 11.92 kB / 0.9561 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2477, allocations: 0 / 0.9561 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2477, allocations: 3.984 kB / 0.9561 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.2478, allocations: 169.6 kB / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2478, allocations: 0 / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.123e-05/0.2479, allocations: 4 kB / 0.9563 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.2479, allocations: 0 / 0.9563 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.2479, allocations: 4 kB / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2479, allocations: 0 / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-07/0.2479, allocations: 0 / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.2481, allocations: 163.3 kB / 0.9564 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.263e-05/0.2481, allocations: 81.11 kB / 0.9565 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.116e-05/0.2481, allocations: 0 / 0.9565 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.84e-05/0.2482, allocations: 3.984 kB / 0.9565 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.774e-05/0.2482, allocations: 4 kB / 0.9565 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.2482, allocations: 0 / 0.9565 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.564e-05/0.2483, allocations: 107.3 kB / 0.9566 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2483, allocations: 0 / 0.9566 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002089/0.2485, allocations: 11.94 kB / 0.9566 GB, free: 1.941 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 (2): * Single equations (assignments): 2 * 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.0001239/0.2486, allocations: 103.2 kB / 0.9567 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001219/0.2488, allocations: 27.97 kB / 0.9568 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2488, allocations: 0 / 0.9568 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.092e-05/0.2488, allocations: 16 kB / 0.9568 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001931/0.249, allocations: 8.062 kB / 0.9568 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002739/0.2493, allocations: 138.6 kB / 0.9569 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.2496, allocations: 0.6883 MB / 0.9576 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.169e-05/0.2496, allocations: 4 kB / 0.9576 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.713e-05/0.2496, allocations: 7.438 kB / 0.9576 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.2496, allocations: 0 / 0.9576 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of Templates: time 0.002302/0.2519, allocations: 497 kB / 0.9581 GB, free: 420 kB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Splice.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Splice.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Splice.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Splice.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Splice.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Splice -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Splice.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Splice_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Splice.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Splice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches