Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 108 kB / 15.6 MB, free: 132 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.001054/0.001054, allocations: 199.2 kB / 16.54 MB, free: 6.672 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7719/0.7719, allocations: 132.2 MB / 422.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002273/0.002273, allocations: 72.12 kB / 0.5019 GB, free: 8.617 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2198, allocations: 80.2 MB / 0.5802 GB, free: 8.648 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002026/0.2219, allocations: 0.6183 MB / 0.5808 GB, free: 8.027 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.2237, allocations: 1.273 MB / 0.582 GB, free: 6.738 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.204e-05/0.2237, allocations: 0 / 0.582 GB, free: 6.738 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.48e-05/0.2238, allocations: 3.938 kB / 0.582 GB, free: 6.734 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.911e-05/0.2238, allocations: 0 / 0.582 GB, free: 6.734 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003901/0.2242, allocations: 67.75 kB / 0.5821 GB, free: 6.668 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.748e-05/0.2243, allocations: 23.97 kB / 0.5821 GB, free: 6.645 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.63e-05/0.2243, allocations: 7.984 kB / 0.5821 GB, free: 6.637 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.18e-05/0.2243, allocations: 7.938 kB / 0.5822 GB, free: 6.629 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.425e-05/0.2244, allocations: 15.92 kB / 0.5822 GB, free: 6.613 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.2244, allocations: 11.94 kB / 0.5822 GB, free: 6.602 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002164/0.2247, allocations: 91.89 kB / 0.5823 GB, free: 6.512 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.583e-05/0.2247, allocations: 8 kB / 0.5823 GB, free: 6.504 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.55e-05/0.2247, allocations: 11.91 kB / 0.5823 GB, free: 6.492 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001502/0.2249, allocations: 67.86 kB / 0.5824 GB, free: 6.426 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2249, allocations: 0 / 0.5824 GB, free: 6.426 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2249, allocations: 0 / 0.5824 GB, free: 6.426 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.2249, allocations: 0 / 0.5824 GB, free: 6.426 MB / 494.1 MB 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.0004387/0.2253, allocations: 347.8 kB / 0.5827 GB, free: 6.039 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2254, allocations: 12.03 kB / 0.5827 GB, free: 6.027 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.2254, allocations: 38.75 kB / 0.5827 GB, free: 5.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.2255, allocations: 0.9375 kB / 0.5827 GB, free: 5.98 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.2256, allocations: 168.3 kB / 0.5829 GB, free: 5.777 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.2256, allocations: 384 / 0.5829 GB, free: 5.777 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.426e-05/0.2256, allocations: 12.3 kB / 0.5829 GB, free: 5.766 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.2257, allocations: 53.81 kB / 0.583 GB, free: 5.707 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.2258, allocations: 0 / 0.583 GB, free: 5.707 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.2258, allocations: 0 / 0.583 GB, free: 5.707 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.2258, allocations: 4 kB / 0.583 GB, free: 5.703 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.38e-05/0.2259, allocations: 31.98 kB / 0.583 GB, free: 5.672 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001838/0.2261, allocations: 165.6 kB / 0.5831 GB, free: 5.461 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.2262, allocations: 66.55 kB / 0.5832 GB, free: 5.387 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.525e-05/0.2263, allocations: 28.84 kB / 0.5832 GB, free: 5.355 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004987/0.2268, allocations: 0.5583 MB / 0.5838 GB, free: 4.668 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.2268, allocations: 38.5 kB / 0.5838 GB, free: 4.621 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.2268, allocations: 0 / 0.5838 GB, free: 4.621 MB / 494.1 MB 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.02073/0.2475, allocations: 4.304 MB / 0.588 GB, free: 188 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.2476, allocations: 55.41 kB / 0.5881 GB, free: 120 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.955e-05/0.2477, allocations: 93.84 kB / 0.5882 GB, free: 16 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.435e-05/0.2478, allocations: 29.7 kB / 0.5882 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.481e-05/0.2478, allocations: 80.14 kB / 0.5883 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.2479, allocations: 59.11 kB / 0.5883 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002541/0.2482, allocations: 89.67 kB / 0.5884 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.872e-05/0.2483, allocations: 326.9 kB / 0.5887 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005424/0.2489, allocations: 307.9 kB / 0.589 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005482/0.2494, allocations: 311.9 kB / 0.5893 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.2509, allocations: 0.7525 MB / 0.5901 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2509, allocations: 0 / 0.5901 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001581/0.2525, allocations: 0.7921 MB / 0.5908 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.2526, allocations: 4 kB / 0.5908 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.2526, allocations: 0 / 0.5908 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.2526, allocations: 7.984 kB / 0.5908 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009128/0.2535, allocations: 95.89 kB / 0.5909 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.2535, allocations: 4 kB / 0.5909 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005817/0.2541, allocations: 4 kB / 0.5909 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-05/0.2542, allocations: 35.97 kB / 0.591 GB, free: 13.11 MB / 0.4981 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.0002174/0.2544, allocations: 122.4 kB / 0.5911 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.188e-05/0.2545, allocations: 7.938 kB / 0.5911 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003479/0.258, allocations: 1.392 MB / 0.5925 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.2581, allocations: 4 kB / 0.5925 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.2581, allocations: 4 kB / 0.5925 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.2581, allocations: 3.984 kB / 0.5925 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003112/0.2612, allocations: 1.809 MB / 0.5942 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2612, allocations: 0 / 0.5942 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009154/0.2621, allocations: 107.9 kB / 0.5943 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.217e-06/0.2622, allocations: 7.938 kB / 0.5943 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.295e-05/0.2622, allocations: 31.92 kB / 0.5944 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2622, allocations: 0 / 0.5944 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2623, allocations: 4 kB / 0.5944 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002549/0.2648, allocations: 1.461 MB / 0.5958 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.2649, allocations: 96.97 kB / 0.5959 GB, free: 7.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.745e-05/0.265, allocations: 11.88 kB / 0.5959 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005899/0.2656, allocations: 12 kB / 0.5959 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.2657, allocations: 39.97 kB / 0.596 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.977e-05/0.2658, allocations: 32 kB / 0.596 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.746e-05/0.2659, allocations: 83.33 kB / 0.5961 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.2659, allocations: 0 / 0.5961 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006043/0.2665, allocations: 172 kB / 0.5962 GB, free: 7.609 MB / 0.4981 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.00316/0.2697, allocations: 2.103 MB / 0.5983 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001353/0.271, allocations: 0.7542 MB / 0.599 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.271, allocations: 0 / 0.599 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006793/0.2717, allocations: 447.8 kB / 0.5994 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.2721, allocations: 18.39 kB / 0.5995 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007921/0.28, allocations: 3.698 MB / 0.6031 GB, free: 496 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2182/0.4982, allocations: 0.7228 MB / 0.6038 GB, free: 56.07 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001453/0.4997, allocations: 293.6 kB / 0.6041 GB, free: 56.06 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005411/0.5002, allocations: 116.6 kB / 0.6042 GB, free: 56.06 MB / 0.4981 GB Notification: Performance of SimCode: time 6.71e-07/0.5002, allocations: 0 / 0.6042 GB, free: 56.06 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02935/0.5296, allocations: 12.6 MB / 0.6165 GB, free: 55.24 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.179/7.708, allocations: 9.031 kB / 0.6165 GB, free: 55.24 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)