Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009862/0.0009862, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006902/0.006902, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.497/1.497, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.688/2.688, allocations: 390.9 MB / 0.6663 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004072/0.0004073, allocations: 8 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8138/0.8142, allocations: 142.4 MB / 0.955 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0008642/0.8152, allocations: 349.8 kB / 0.9554 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00189/0.8171, allocations: 1.27 MB / 0.9566 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.226e-05/0.8171, allocations: 0 / 0.9566 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.947e-05/0.8172, allocations: 0 / 0.9566 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.28e-05/0.8172, allocations: 0 / 0.9566 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005753/0.8178, allocations: 62.31 kB / 0.9567 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.763e-05/0.8179, allocations: 22.48 kB / 0.9567 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.415e-05/0.818, allocations: 1.469 kB / 0.9567 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.883e-05/0.818, allocations: 13.08 kB / 0.9567 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.472e-05/0.8181, allocations: 16.67 kB / 0.9567 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.8181, allocations: 1.281 kB / 0.9567 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.8184, allocations: 101 kB / 0.9568 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.693e-05/0.8184, allocations: 5.156 kB / 0.9568 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.627e-05/0.8185, allocations: 38.02 kB / 0.9569 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.8187, allocations: 73.59 kB / 0.9569 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.8187, allocations: 0 / 0.9569 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.994e-06/0.8187, allocations: 1.844 kB / 0.9569 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.8187, allocations: 0 / 0.9569 GB, free: 6.297 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000434/0.8191, allocations: 345.2 kB / 0.9573 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.8192, allocations: 13.36 kB / 0.9573 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.531e-05/0.8192, allocations: 2.875 kB / 0.9573 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.8194, allocations: 166.3 kB / 0.9574 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.8194, allocations: 6.469 kB / 0.9575 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.799e-05/0.8194, allocations: 2.406 kB / 0.9575 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001537/0.8196, allocations: 61.09 kB / 0.9575 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.8196, allocations: 1.031 kB / 0.9575 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.8196, allocations: 1.031 kB / 0.9575 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.8196, allocations: 1.312 kB / 0.9575 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.681e-05/0.8197, allocations: 24.95 kB / 0.9575 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001886/0.8199, allocations: 169 kB / 0.9577 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.82, allocations: 67.95 kB / 0.9578 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.792e-05/0.8201, allocations: 29.28 kB / 0.9578 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004068/0.8205, allocations: 0.5594 MB / 0.9583 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.8205, allocations: 39.97 kB / 0.9584 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.8206, allocations: 4 kB / 0.9584 GB, free: 4.656 MB / 0.7169 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.02054/0.8411, allocations: 4.267 MB / 0.9626 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.8412, allocations: 53.75 kB / 0.9626 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.469e-05/0.8413, allocations: 91.92 kB / 0.9627 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.146e-05/0.8414, allocations: 30.8 kB / 0.9627 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.148e-05/0.8414, allocations: 84.27 kB / 0.9628 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.8416, allocations: 57.88 kB / 0.9629 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.8417, allocations: 23.02 kB / 0.9629 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.292e-05/0.8417, allocations: 322.4 kB / 0.9632 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004826/0.8422, allocations: 307.6 kB / 0.9635 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005702/0.8428, allocations: 312.7 kB / 0.9638 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.8444, allocations: 0.7723 MB / 0.9645 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.8445, allocations: 4.844 kB / 0.9645 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001558/0.846, allocations: 0.801 MB / 0.9653 GB, free: 468 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.8461, allocations: 8.781 kB / 0.9653 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.8461, allocations: 0.9688 kB / 0.9653 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.8461, allocations: 1 kB / 0.9653 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008919/0.847, allocations: 96.09 kB / 0.9654 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.689e-06/0.847, allocations: 1.188 kB / 0.9654 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005718/0.8476, allocations: 9.25 kB / 0.9654 GB, free: 440 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.947e-05/0.8477, allocations: 31.48 kB / 0.9655 GB, free: 436 kB / 0.7169 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 (18): * Single equations (assignments): 18 * 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 0.0001997/0.8479, allocations: 117.7 kB / 0.9656 GB, free: 312 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.002e-05/0.848, allocations: 10.72 kB / 0.9656 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004064/0.8521, allocations: 1.412 MB / 0.967 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.8521, allocations: 4.062 kB / 0.967 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.8521, allocations: 0 / 0.967 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.8522, allocations: 1.469 kB / 0.967 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004252/0.8564, allocations: 1.804 MB / 0.9687 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.8565, allocations: 0 / 0.9687 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009702/0.8574, allocations: 105.4 kB / 0.9688 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.498e-05/0.8575, allocations: 5.953 kB / 0.9688 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.8576, allocations: 33.88 kB / 0.9689 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.056e-05/0.8576, allocations: 1.25 kB / 0.9689 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.8576, allocations: 1.219 kB / 0.9689 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003152/0.8608, allocations: 1.481 MB / 0.9703 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.8609, allocations: 97.97 kB / 0.9704 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.623e-05/0.861, allocations: 14.66 kB / 0.9704 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005988/0.8616, allocations: 13.56 kB / 0.9704 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/0.8618, allocations: 38.28 kB / 0.9705 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.8619, allocations: 34.92 kB / 0.9705 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.832e-05/0.862, allocations: 76.75 kB / 0.9706 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.862, allocations: 0 / 0.9706 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001222/0.8632, allocations: 174.8 kB / 0.9707 GB, free: 13.09 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * 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 (40): * Single equations (assignments): 40 * 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.0008184/0.8641, allocations: 235.5 kB / 0.971 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001462/0.8655, allocations: 0.7236 MB / 0.9717 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.8655, allocations: 0 / 0.9717 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007242/0.8663, allocations: 450.6 kB / 0.9721 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.8667, allocations: 21.34 kB / 0.9721 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003863/0.8706, allocations: 0.8638 MB / 0.973 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.871, allocations: 0.7173 MB / 0.9737 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00144/0.8724, allocations: 290.1 kB / 0.9739 GB, free: 11 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005584/0.873, allocations: 89.75 kB / 0.974 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of SimCode: time 9.82e-07/0.873, allocations: 4 kB / 0.974 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of Templates: time 0.02046/0.8935, allocations: 10.65 MB / 0.9844 GB, free: 0.5781 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches