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.001243/0.001243, allocations: 110.4 kB / 15.99 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.001286/0.001286, allocations: 195.7 kB / 16.91 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.411/1.411, allocations: 222.9 MB / 240.6 MB, free: 4.523 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.411/2.411, allocations: 390.2 MB / 0.665 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 63.91 kB / 0.8127 GB, free: 14.73 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7198/0.7213, allocations: 140.4 MB / 0.9498 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001821/0.7232, allocations: 0.6787 MB / 0.9504 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0014/0.7246, allocations: 1.272 MB / 0.9517 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.353e-05/0.7246, allocations: 0 / 0.9517 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.909e-05/0.7247, allocations: 3.938 kB / 0.9517 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.98e-05/0.7247, allocations: 0 / 0.9517 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003897/0.7251, allocations: 62.78 kB / 0.9518 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.022e-05/0.7252, allocations: 26.38 kB / 0.9518 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.621e-05/0.7252, allocations: 6.312 kB / 0.9518 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.265e-05/0.7253, allocations: 9.297 kB / 0.9518 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.3e-05/0.7253, allocations: 16.48 kB / 0.9518 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.263e-05/0.7254, allocations: 1.594 kB / 0.9518 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.7256, allocations: 100.1 kB / 0.9519 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.575e-05/0.7256, allocations: 10.7 kB / 0.9519 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.14e-05/0.7256, allocations: 10.61 kB / 0.9519 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001027/0.7257, allocations: 44.5 kB / 0.952 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.7257, allocations: 4 kB / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.233e-06/0.7258, allocations: 1.031 kB / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.7258, allocations: 3.938 kB / 0.952 GB, free: 7.449 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.0003811/0.7261, allocations: 357.6 kB / 0.9523 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.7262, allocations: 9.906 kB / 0.9523 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.7262, allocations: 2.438 kB / 0.9523 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.22e-05/0.7263, allocations: 161.8 kB / 0.9525 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.7263, allocations: 1.594 kB / 0.9525 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.7264, allocations: 11.09 kB / 0.9525 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.7265, allocations: 53.89 kB / 0.9525 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.7265, allocations: 12.97 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.7265, allocations: 0 / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.7265, allocations: 0.8125 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.28e-05/0.7266, allocations: 21.77 kB / 0.9526 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001428/0.7268, allocations: 170 kB / 0.9527 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.7269, allocations: 59.5 kB / 0.9528 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.168e-05/0.7269, allocations: 25.12 kB / 0.9528 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003858/0.7273, allocations: 0.5617 MB / 0.9534 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.7274, allocations: 40.19 kB / 0.9534 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.7274, allocations: 0 / 0.9534 GB, free: 5.816 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.01998/0.7473, allocations: 4.373 MB / 0.9577 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.7474, allocations: 52.91 kB / 0.9577 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.939e-05/0.7475, allocations: 95.45 kB / 0.9578 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.439e-05/0.7476, allocations: 34.86 kB / 0.9579 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.337e-05/0.7476, allocations: 81.2 kB / 0.9579 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.7477, allocations: 61.72 kB / 0.958 GB, free: 3 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002561/0.7479, allocations: 92.17 kB / 0.9581 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.926e-05/0.748, allocations: 324.6 kB / 0.9584 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004915/0.7485, allocations: 306.4 kB / 0.9587 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004845/0.749, allocations: 313.2 kB / 0.959 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.7504, allocations: 0.7768 MB / 0.9597 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.7505, allocations: 5.375 kB / 0.9597 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001477/0.7519, allocations: 0.7968 MB / 0.9605 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.752, allocations: 4.5 kB / 0.9605 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.752, allocations: 1.188 kB / 0.9605 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.752, allocations: 1.156 kB / 0.9605 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008189/0.7528, allocations: 91.38 kB / 0.9606 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.7528, allocations: 1.406 kB / 0.9606 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005327/0.7534, allocations: 9.062 kB / 0.9606 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.601e-05/0.7535, allocations: 32.73 kB / 0.9607 GB, free: 1.508 MB / 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.0001924/0.7537, allocations: 128.5 kB / 0.9608 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.93e-05/0.7538, allocations: 7.469 kB / 0.9608 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003384/0.7572, allocations: 1.4 MB / 0.9622 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.7572, allocations: 2.844 kB / 0.9622 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.7572, allocations: 1.375 kB / 0.9622 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.7572, allocations: 0 / 0.9622 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.7604, allocations: 1.821 MB / 0.9639 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.7604, allocations: 1.094 kB / 0.9639 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008471/0.7613, allocations: 108.8 kB / 0.964 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.7613, allocations: 1.969 kB / 0.964 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.289e-05/0.7614, allocations: 33.16 kB / 0.9641 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.7614, allocations: 2.625 kB / 0.9641 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.7614, allocations: 0 / 0.9641 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002745/0.7642, allocations: 1.473 MB / 0.9655 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.7643, allocations: 90.27 kB / 0.9656 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.7644, allocations: 14.81 kB / 0.9656 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005271/0.765, allocations: 13.31 kB / 0.9656 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.7651, allocations: 43.17 kB / 0.9657 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.921e-05/0.7652, allocations: 29.78 kB / 0.9657 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.949e-05/0.7653, allocations: 84.19 kB / 0.9658 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of sort global known variables: time 6.11e-07/0.7653, allocations: 4.906 kB / 0.9658 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006986/0.766, allocations: 178.9 kB / 0.966 GB, free: 14.17 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.0006445/0.7667, allocations: 230.4 kB / 0.9662 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001462/0.7681, allocations: 0.7365 MB / 0.9669 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.7681, allocations: 0 / 0.9669 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007053/0.7689, allocations: 451 kB / 0.9673 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003652/0.7692, allocations: 25.36 kB / 0.9673 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003479/0.7727, allocations: 0.8785 MB / 0.9682 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.7731, allocations: 0.7136 MB / 0.9689 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005962/0.7737, allocations: 96 kB / 0.969 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of SimCode: time 7.91e-07/0.7737, allocations: 0 / 0.969 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of Templates: time 0.0136/0.7873, allocations: 6.894 MB / 0.9757 GB, free: 6.844 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)