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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.005772/0.005772, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7512/0.7512, allocations: 135.2 MB / 151.1 MB, free: 13.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.2 MB / 406.8 MB, free: 3.195 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008902/0.00089, allocations: 88.12 kB / 489.9 MB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004145/0.0004149, allocations: 11.98 kB / 0.5692 GB, free: 14 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3587, allocations: 82.31 MB / 0.6495 GB, free: 36.06 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1432/0.502, allocations: 111.9 MB / 0.7588 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.5023, allocations: 79.95 kB / 0.7589 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.007261/0.5096, allocations: 2.402 MB / 0.7612 GB, free: 1.559 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5096, allocations: 0 / 0.7612 GB, free: 1.559 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.5096, allocations: 0 / 0.7612 GB, free: 1.559 MB / 0.5261 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.000337/0.5099, allocations: 363.2 kB / 0.7616 GB, free: 1.156 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.51, allocations: 12.02 kB / 0.7616 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.438e-05/0.51, allocations: 38.5 kB / 0.7616 GB, free: 1.098 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.486e-05/0.5101, allocations: 4 kB / 0.7616 GB, free: 1.094 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.5102, allocations: 167 kB / 0.7618 GB, free: 0.8906 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.5102, allocations: 4 kB / 0.7618 GB, free: 0.8867 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.5102, allocations: 4 kB / 0.7618 GB, free: 0.8828 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.5104, allocations: 53.61 kB / 0.7618 GB, free: 0.8242 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.5104, allocations: 0 / 0.7618 GB, free: 0.8242 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.5104, allocations: 4 kB / 0.7618 GB, free: 0.8203 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.5104, allocations: 8 kB / 0.7618 GB, free: 0.8125 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.261e-05/0.5105, allocations: 19.98 kB / 0.7619 GB, free: 0.793 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000178/0.5107, allocations: 169.5 kB / 0.762 GB, free: 0.5781 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/0.5108, allocations: 62.61 kB / 0.7621 GB, free: 0.5078 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004585/0.5112, allocations: 0.5583 MB / 0.7626 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.5113, allocations: 38.5 kB / 0.7627 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.5113, allocations: 0 / 0.7627 GB, free: 15.77 MB / 0.5417 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.01933/0.5306, allocations: 4.188 MB / 0.7668 GB, free: 11.44 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.5307, allocations: 55.41 kB / 0.7668 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.018e-05/0.5308, allocations: 92.95 kB / 0.7669 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.613e-05/0.5309, allocations: 33.58 kB / 0.7669 GB, free: 11.24 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.584e-05/0.531, allocations: 80.27 kB / 0.767 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.5311, allocations: 59.25 kB / 0.7671 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.234e-05/0.5312, allocations: 4 kB / 0.7671 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.5313, allocations: 314.8 kB / 0.7674 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004914/0.5318, allocations: 311.9 kB / 0.7677 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005383/0.5323, allocations: 307.8 kB / 0.768 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007277/0.5331, allocations: 385.3 kB / 0.7683 GB, free: 9.797 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.5331, allocations: 0 / 0.7683 GB, free: 9.797 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001499/0.5346, allocations: 0.7835 MB / 0.7691 GB, free: 9.008 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.5346, allocations: 4 kB / 0.7691 GB, free: 9.004 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.5346, allocations: 7.938 kB / 0.7691 GB, free: 8.996 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.5347, allocations: 4 kB / 0.7691 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007946/0.5354, allocations: 91.94 kB / 0.7692 GB, free: 8.902 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.5355, allocations: 0 / 0.7692 GB, free: 8.902 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004947/0.536, allocations: 8 kB / 0.7692 GB, free: 8.895 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-05/0.5361, allocations: 39.94 kB / 0.7692 GB, free: 8.855 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002207/0.5363, allocations: 125.7 kB / 0.7694 GB, free: 8.723 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.651e-05/0.5364, allocations: 7.906 kB / 0.7694 GB, free: 8.715 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.5398, allocations: 1.388 MB / 0.7707 GB, free: 7.316 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.5398, allocations: 4 kB / 0.7707 GB, free: 7.312 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.5398, allocations: 0 / 0.7707 GB, free: 7.312 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.5398, allocations: 4 kB / 0.7707 GB, free: 7.309 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003049/0.5429, allocations: 1.794 MB / 0.7725 GB, free: 5.449 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.5429, allocations: 8.031 kB / 0.7725 GB, free: 5.441 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007592/0.5437, allocations: 111.9 kB / 0.7726 GB, free: 5.332 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.5437, allocations: 0 / 0.7726 GB, free: 5.332 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.27e-05/0.5438, allocations: 31.95 kB / 0.7726 GB, free: 5.301 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.5438, allocations: 0 / 0.7726 GB, free: 5.301 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.5438, allocations: 3.938 kB / 0.7726 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002364/0.5462, allocations: 1.462 MB / 0.7741 GB, free: 3.809 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.5462, allocations: 100.8 kB / 0.7742 GB, free: 3.691 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.828e-05/0.5463, allocations: 4 kB / 0.7742 GB, free: 3.688 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004695/0.5468, allocations: 12 kB / 0.7742 GB, free: 3.676 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.5469, allocations: 39.97 kB / 0.7742 GB, free: 3.637 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.749e-05/0.547, allocations: 35.98 kB / 0.7742 GB, free: 3.602 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.6e-05/0.547, allocations: 75.28 kB / 0.7743 GB, free: 3.527 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.547, allocations: 0 / 0.7743 GB, free: 3.527 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006469/0.5477, allocations: 207.9 kB / 0.7745 GB, free: 3.324 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003008/0.5507, allocations: 2.236 MB / 0.7767 GB, free: 1.055 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001188/0.5519, allocations: 0.7277 MB / 0.7774 GB, free: 336 kB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.5519, allocations: 4.062 kB / 0.7774 GB, free: 332 kB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000627/0.5526, allocations: 451.8 kB / 0.7778 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001912/0.5528, allocations: 4 kB / 0.7778 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00524/0.558, allocations: 2.17 MB / 0.78 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.5583, allocations: 0.7184 MB / 0.7807 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001475/0.5598, allocations: 293.6 kB / 0.7809 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006855/0.5605, allocations: 119.4 kB / 0.7811 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of SimCode: time 5.11e-07/0.5605, allocations: 3.938 kB / 0.7811 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02534/0.5859, allocations: 11.34 MB / 0.7921 GB, free: 1.352 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/0.5861, allocations: 190.6 kB / 0.7923 GB, free: 1.113 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/2.276, allocations: 1.828 kB / 0.7923 GB, free: 1.113 MB / 0.5573 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)