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.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.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.0009197/0.00092, allocations: 91.77 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001197, allocations: 180.9 kB / 16.92 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.42/1.42, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.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.475/2.475, allocations: 390.9 MB / 0.667 GB, free: 2.293 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003658, allocations: 8 kB / 0.8166 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.723/0.7234, allocations: 142.4 MB / 0.9557 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0007264/0.7242, allocations: 349.5 kB / 0.9561 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001423/0.7256, allocations: 1.28 MB / 0.9573 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.644e-05/0.7257, allocations: 1.469 kB / 0.9573 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.637e-05/0.7257, allocations: 0 / 0.9573 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.22e-05/0.7257, allocations: 0 / 0.9573 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.726, allocations: 53.5 kB / 0.9574 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.003e-05/0.7261, allocations: 18.95 kB / 0.9574 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.825e-05/0.7262, allocations: 9.328 kB / 0.9574 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.231e-05/0.7262, allocations: 13.56 kB / 0.9574 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.722e-05/0.7263, allocations: 20.78 kB / 0.9574 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.7263, allocations: 0.9375 kB / 0.9574 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002235/0.7265, allocations: 92.56 kB / 0.9575 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.951e-05/0.7265, allocations: 13.81 kB / 0.9575 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.7266, allocations: 37.11 kB / 0.9576 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.7267, allocations: 43.69 kB / 0.9576 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.7267, allocations: 1.125 kB / 0.9576 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7267, allocations: 3.938 kB / 0.9576 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.7267, allocations: 0 / 0.9576 GB, free: 6.156 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.0003616/0.7271, allocations: 346.2 kB / 0.9579 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.7272, allocations: 9.438 kB / 0.9579 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.7272, allocations: 3.344 kB / 0.9579 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.732e-05/0.7273, allocations: 164.4 kB / 0.9581 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.7273, allocations: 6.844 kB / 0.9581 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.749e-05/0.7273, allocations: 3.094 kB / 0.9581 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.7275, allocations: 61.64 kB / 0.9582 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.7275, allocations: 0 / 0.9582 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.7275, allocations: 9.344 kB / 0.9582 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.7275, allocations: 1.375 kB / 0.9582 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.864e-05/0.7276, allocations: 21.23 kB / 0.9582 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001452/0.7277, allocations: 173.2 kB / 0.9584 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.7279, allocations: 60.56 kB / 0.9584 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.158e-05/0.7279, allocations: 32.19 kB / 0.9585 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003601/0.7283, allocations: 0.5635 MB / 0.959 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.7283, allocations: 36.53 kB / 0.959 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.7283, allocations: 0 / 0.959 GB, free: 4.52 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.01967/0.748, allocations: 4.271 MB / 0.9632 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/0.748, allocations: 53.88 kB / 0.9633 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.49e-05/0.7481, allocations: 94.73 kB / 0.9633 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.999e-05/0.7482, allocations: 30.73 kB / 0.9634 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.503e-05/0.7482, allocations: 84.12 kB / 0.9635 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.7483, allocations: 58.45 kB / 0.9635 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.449e-05/0.7484, allocations: 18 kB / 0.9635 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.932e-05/0.7484, allocations: 325 kB / 0.9638 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004651/0.7489, allocations: 309.2 kB / 0.9641 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004833/0.7494, allocations: 309.3 kB / 0.9644 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.7509, allocations: 0.7775 MB / 0.9652 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.7509, allocations: 0 / 0.9652 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001533/0.7525, allocations: 0.7972 MB / 0.966 GB, free: 328 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.7525, allocations: 5.312 kB / 0.966 GB, free: 328 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.7525, allocations: 0 / 0.966 GB, free: 328 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.7526, allocations: 0.9062 kB / 0.966 GB, free: 328 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000859/0.7534, allocations: 92.34 kB / 0.9661 GB, free: 312 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.7534, allocations: 1 kB / 0.9661 GB, free: 312 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005544/0.754, allocations: 17.88 kB / 0.9661 GB, free: 300 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.53e-05/0.7541, allocations: 35.16 kB / 0.9661 GB, free: 292 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.0001744/0.7543, allocations: 117.8 kB / 0.9662 GB, free: 168 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.638e-05/0.7543, allocations: 7 kB / 0.9662 GB, free: 164 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003614/0.758, allocations: 1.407 MB / 0.9676 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.758, allocations: 5.156 kB / 0.9676 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.758, allocations: 4 kB / 0.9676 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.758, allocations: 3.984 kB / 0.9676 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003012/0.761, allocations: 1.806 MB / 0.9694 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.7611, allocations: 0 / 0.9694 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008193/0.7619, allocations: 105 kB / 0.9695 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.7619, allocations: 2.281 kB / 0.9695 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-05/0.762, allocations: 37.44 kB / 0.9695 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.762, allocations: 1.188 kB / 0.9695 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.762, allocations: 1.25 kB / 0.9695 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.7645, allocations: 1.473 MB / 0.971 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.515e-05/0.7646, allocations: 97.3 kB / 0.9711 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.486e-05/0.7647, allocations: 10.44 kB / 0.9711 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005461/0.7652, allocations: 17.98 kB / 0.9711 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.7654, allocations: 42.22 kB / 0.9711 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.753e-05/0.7655, allocations: 30.53 kB / 0.9712 GB, free: 13.06 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.088e-05/0.7655, allocations: 80.34 kB / 0.9712 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7655, allocations: 0 / 0.9712 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006253/0.7661, allocations: 179.7 kB / 0.9714 GB, free: 12.95 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.0005412/0.7667, allocations: 223.2 kB / 0.9716 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001279/0.768, allocations: 0.7235 MB / 0.9723 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.768, allocations: 4 kB / 0.9723 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006675/0.7687, allocations: 450.8 kB / 0.9728 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.769, allocations: 24.56 kB / 0.9728 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003566/0.7726, allocations: 0.8816 MB / 0.9736 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.7729, allocations: 0.7187 MB / 0.9743 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005812/0.7735, allocations: 95.06 kB / 0.9744 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of SimCode: time 6.41e-07/0.7735, allocations: 0 / 0.9744 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of Templates: time 0.01121/0.7847, allocations: 6.887 MB / 0.9812 GB, free: 4.672 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)