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.001148/0.001149, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001063/0.001063, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.462/1.462, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.179/2.179, allocations: 390.2 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001406, allocations: 67.89 kB / 0.9516 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7188/0.7203, allocations: 140.4 MB / 1.089 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001646/0.722, allocations: 0.6096 MB / 1.089 GB, free: 5.395 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001535/0.7235, allocations: 1.293 MB / 1.091 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.85e-05/0.7236, allocations: 1.406 kB / 1.091 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.887e-05/0.7236, allocations: 0 / 1.091 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.287e-05/0.7236, allocations: 0 / 1.091 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.724, allocations: 81.95 kB / 1.091 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.461e-05/0.7241, allocations: 18.56 kB / 1.091 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.788e-05/0.7242, allocations: 3.438 kB / 1.091 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.766e-05/0.7242, allocations: 10.69 kB / 1.091 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.443e-05/0.7243, allocations: 21.17 kB / 1.091 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.7243, allocations: 5.125 kB / 1.091 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002307/0.7245, allocations: 97.95 kB / 1.091 GB, free: 4.355 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.348e-05/0.7245, allocations: 8.109 kB / 1.091 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.7246, allocations: 12.92 kB / 1.091 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.7247, allocations: 68.42 kB / 1.091 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.7247, allocations: 0.5156 kB / 1.091 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.824e-06/0.7247, allocations: 0.7188 kB / 1.091 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.137e-06/0.7247, allocations: 0 / 1.091 GB, free: 4.32 MB / 0.8575 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.0003556/0.7251, allocations: 350.6 kB / 1.091 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.7251, allocations: 9.625 kB / 1.091 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.724e-05/0.7252, allocations: 7.734 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.975e-05/0.7253, allocations: 167.7 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.7253, allocations: 2.312 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.7253, allocations: 8.25 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/0.7254, allocations: 51.94 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.7255, allocations: 1.188 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.7255, allocations: 0 / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.7255, allocations: 0.9062 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.016e-05/0.7256, allocations: 39.38 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001372/0.7257, allocations: 166.4 kB / 1.092 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/0.7258, allocations: 60.61 kB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.417e-05/0.7259, allocations: 27.33 kB / 1.092 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003528/0.7262, allocations: 0.5599 MB / 1.092 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.7263, allocations: 40.22 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.7263, allocations: 0 / 1.092 GB, free: 2.727 MB / 0.8575 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.0198/0.7461, allocations: 4.367 MB / 1.097 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.7461, allocations: 54.14 kB / 1.097 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.987e-05/0.7462, allocations: 91.72 kB / 1.097 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.144e-05/0.7463, allocations: 30.86 kB / 1.097 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.441e-05/0.7463, allocations: 81.48 kB / 1.097 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.7464, allocations: 58.56 kB / 1.097 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.7467, allocations: 89.44 kB / 1.097 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.316e-05/0.7467, allocations: 323.6 kB / 1.097 GB, free: 224 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005128/0.7472, allocations: 315 kB / 1.098 GB, free: 88 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005476/0.7478, allocations: 316.3 kB / 1.098 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.7494, allocations: 0.7686 MB / 1.099 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.7494, allocations: 0 / 1.099 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00168/0.7511, allocations: 0.7952 MB / 1.099 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.7511, allocations: 6.406 kB / 1.099 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.7511, allocations: 1.094 kB / 1.099 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.7511, allocations: 1.578 kB / 1.099 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00091/0.752, allocations: 98.81 kB / 1.099 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.7521, allocations: 0.9062 kB / 1.099 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/0.7526, allocations: 9.25 kB / 1.099 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.48e-05/0.7527, allocations: 34.33 kB / 1.1 GB, free: 15.28 MB / 0.8731 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.0002286/0.7529, allocations: 121.9 kB / 1.1 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.65e-05/0.753, allocations: 7.094 kB / 1.1 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003604/0.7566, allocations: 1.404 MB / 1.101 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.7567, allocations: 5.828 kB / 1.101 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.7567, allocations: 0 / 1.101 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.7567, allocations: 2.297 kB / 1.101 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.7598, allocations: 1.81 MB / 1.103 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.7598, allocations: 0.5156 kB / 1.103 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000829/0.7607, allocations: 110 kB / 1.103 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.114e-05/0.7607, allocations: 6.344 kB / 1.103 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.433e-05/0.7608, allocations: 34.39 kB / 1.103 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.7608, allocations: 2.797 kB / 1.103 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7608, allocations: 0 / 1.103 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.7634, allocations: 1.466 MB / 1.104 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.466e-05/0.7635, allocations: 94.48 kB / 1.104 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.835e-05/0.7636, allocations: 11.38 kB / 1.104 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005454/0.7642, allocations: 18.56 kB / 1.104 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.7644, allocations: 42.17 kB / 1.105 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.453e-05/0.7644, allocations: 37.62 kB / 1.105 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.222e-05/0.7645, allocations: 75.28 kB / 1.105 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7645, allocations: 0 / 1.105 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007445/0.7653, allocations: 181.4 kB / 1.105 GB, free: 12.43 MB / 0.8731 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.0005909/0.7659, allocations: 224.5 kB / 1.105 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001376/0.7672, allocations: 0.7267 MB / 1.106 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.7673, allocations: 1.469 kB / 1.106 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007128/0.768, allocations: 453.6 kB / 1.106 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.7683, allocations: 17.31 kB / 1.106 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.772, allocations: 0.8175 MB / 1.107 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.7723, allocations: 0.7184 MB / 1.108 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006467/0.773, allocations: 96.34 kB / 1.108 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of SimCode: time 3.9e-07/0.773, allocations: 0 / 1.108 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of Templates: time 0.01418/0.7872, allocations: 6.9 MB / 1.114 GB, free: 10.18 MB / 0.8731 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)