Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001193/0.001193, allocations: 104.1 kB / 15.98 MB, free: 5.891 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.001293/0.001293, allocations: 187.5 kB / 16.9 MB, free: 5.746 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.32/1.32, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.354/2.354, allocations: 437 MB / 0.7107 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 71.61 kB / 0.8694 GB, free: 2.57 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3323, allocations: 151.6 MB / 1.017 GB, free: 11.01 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.002198/0.3346, allocations: 0.6459 MB / 1.018 GB, free: 10.36 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00183/0.3364, allocations: 1.25 MB / 1.019 GB, free: 9.094 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.988e-05/0.3365, allocations: 0 / 1.019 GB, free: 9.094 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.3365, allocations: 0 / 1.019 GB, free: 9.094 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.11e-06/0.3365, allocations: 0 / 1.019 GB, free: 9.094 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004441/0.337, allocations: 55.88 kB / 1.019 GB, free: 9.039 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.386e-05/0.337, allocations: 8 kB / 1.019 GB, free: 9.031 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.696e-05/0.3371, allocations: 0 / 1.019 GB, free: 9.031 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.201e-05/0.3371, allocations: 3.938 kB / 1.019 GB, free: 9.027 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.521e-05/0.3371, allocations: 3.938 kB / 1.019 GB, free: 9.023 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.658e-06/0.3372, allocations: 0 / 1.019 GB, free: 9.023 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002484/0.3374, allocations: 103.8 kB / 1.019 GB, free: 8.922 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.012e-05/0.3374, allocations: 0 / 1.019 GB, free: 8.922 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.013e-05/0.3375, allocations: 4 kB / 1.019 GB, free: 8.918 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000105/0.3376, allocations: 39.94 kB / 1.02 GB, free: 8.879 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3376, allocations: 0 / 1.02 GB, free: 8.879 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3376, allocations: 4 kB / 1.02 GB, free: 8.875 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.3376, allocations: 0 / 1.02 GB, free: 8.875 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.0003205/0.3379, allocations: 323.6 kB / 1.02 GB, free: 8.512 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.338, allocations: 8.922 kB / 1.02 GB, free: 8.504 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.338, allocations: 0.9375 kB / 1.02 GB, free: 8.504 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.808e-05/0.3381, allocations: 160.4 kB / 1.02 GB, free: 8.309 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.3381, allocations: 4.375 kB / 1.02 GB, free: 8.305 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.3382, allocations: 384 / 1.02 GB, free: 8.305 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.551e-05/0.3383, allocations: 34.02 kB / 1.02 GB, free: 8.266 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.3383, allocations: 7.938 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.3383, allocations: 0 / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.3383, allocations: 4 kB / 1.02 GB, free: 8.254 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.949e-05/0.3383, allocations: 0 / 1.02 GB, free: 8.254 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001437/0.3385, allocations: 145.7 kB / 1.02 GB, free: 8.062 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 4.345e-05/0.3385, allocations: 18.61 kB / 1.02 GB, free: 8.035 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.053e-05/0.3385, allocations: 8.859 kB / 1.02 GB, free: 8.023 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006427/0.3392, allocations: 0.5661 MB / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3392, allocations: 38.5 kB / 1.021 GB, free: 7.281 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3392, allocations: 0 / 1.021 GB, free: 7.281 MB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0001463/0.3394, allocations: 37.64 kB / 1.021 GB, free: 7.238 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.3394, allocations: 51.41 kB / 1.021 GB, free: 7.176 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.838e-05/0.3395, allocations: 89.86 kB / 1.021 GB, free: 7.078 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.3395, allocations: 29.83 kB / 1.021 GB, free: 7.043 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 3.9e-05/0.3396, allocations: 80.14 kB / 1.021 GB, free: 6.961 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.3396, allocations: 3.984 kB / 1.021 GB, free: 6.957 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.3396, allocations: 13.72 kB / 1.021 GB, free: 6.938 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3398, allocations: 310.8 kB / 1.021 GB, free: 6.625 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.277e-06/0.3398, allocations: 0 / 1.021 GB, free: 6.625 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.315e-06/0.3398, allocations: 4 kB / 1.021 GB, free: 6.621 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.243e-05/0.3398, allocations: 16.86 kB / 1.021 GB, free: 6.602 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3398, allocations: 4 kB / 1.021 GB, free: 6.598 MB / 0.795 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.442e-05/0.3399, allocations: 29.7 kB / 1.021 GB, free: 6.562 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.3399, allocations: 7.938 kB / 1.021 GB, free: 6.555 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.3399, allocations: 3.984 kB / 1.021 GB, free: 6.551 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.3399, allocations: 0 / 1.021 GB, free: 6.551 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.824e-05/0.34, allocations: 7.938 kB / 1.021 GB, free: 6.543 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.34, allocations: 0 / 1.021 GB, free: 6.543 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.227e-05/0.34, allocations: 0 / 1.021 GB, free: 6.543 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-06/0.34, allocations: 0 / 1.021 GB, free: 6.543 MB / 0.795 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.95e-05/0.3401, allocations: 115.6 kB / 1.022 GB, free: 6.422 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-06/0.3401, allocations: 3.938 kB / 1.022 GB, free: 6.418 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.983e-05/0.3402, allocations: 48.73 kB / 1.022 GB, free: 6.363 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3402, allocations: 0 / 1.022 GB, free: 6.363 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3403, allocations: 0 / 1.022 GB, free: 6.363 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.3403, allocations: 0 / 1.022 GB, free: 6.363 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001153/0.3404, allocations: 149.7 kB / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3404, allocations: 4.031 kB / 1.022 GB, free: 6.164 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.612e-05/0.3404, allocations: 0 / 1.022 GB, free: 6.164 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.3404, allocations: 3.938 kB / 1.022 GB, free: 6.16 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.3404, allocations: 7.984 kB / 1.022 GB, free: 6.152 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3404, allocations: 0 / 1.022 GB, free: 6.152 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3404, allocations: 0 / 1.022 GB, free: 6.152 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.255e-05/0.3405, allocations: 61.02 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.3406, allocations: 77.39 kB / 1.022 GB, free: 5.98 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.3406, allocations: 11.97 kB / 1.022 GB, free: 5.969 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.3406, allocations: 3.984 kB / 1.022 GB, free: 5.965 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.653e-05/0.3406, allocations: 0 / 1.022 GB, free: 5.965 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.3406, allocations: 0 / 1.022 GB, free: 5.965 MB / 0.795 GB Notification: Performance of sorting global known variables: time 2.892e-05/0.3407, allocations: 75.28 kB / 1.022 GB, free: 5.891 MB / 0.795 GB Notification: Performance of sort global known variables: time 9e-08/0.3407, allocations: 0 / 1.022 GB, free: 5.891 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0001982/0.3409, allocations: 12 kB / 1.022 GB, free: 5.879 MB / 0.795 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.0001856/0.3411, allocations: 103.2 kB / 1.022 GB, free: 5.77 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 7.858e-05/0.3412, allocations: 11.98 kB / 1.022 GB, free: 5.758 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3412, allocations: 4 kB / 1.022 GB, free: 5.754 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.645e-06/0.3412, allocations: 0 / 1.022 GB, free: 5.754 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.3413, allocations: 6 kB / 1.022 GB, free: 5.75 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002004/0.3415, allocations: 110.6 kB / 1.022 GB, free: 5.609 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.3418, allocations: 0.669 MB / 1.023 GB, free: 4.914 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.755e-05/0.3418, allocations: 7.438 kB / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.3418, allocations: 0 / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of Templates: time 0.001987/0.3438, allocations: 443.7 kB / 1.023 GB, free: 4.473 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches