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.001313/0.001313, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001485/0.001485, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.058/2.058, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.207/1.207, allocations: 132.2 MB / 423.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004266/0.0004266, allocations: 13.28 kB / 0.5033 GB, free: 4.164 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6204/0.6208, allocations: 81.57 MB / 0.583 GB, free: 3.988 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001085/0.622, allocations: 340.5 kB / 0.5833 GB, free: 3.758 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002636/0.6247, allocations: 1.227 MB / 0.5845 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.291e-05/0.6247, allocations: 0 / 0.5845 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.6248, allocations: 0 / 0.5845 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.095e-05/0.6248, allocations: 0 / 0.5845 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005077/0.6253, allocations: 51.12 kB / 0.5845 GB, free: 2.836 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 9.183e-05/0.6254, allocations: 14.38 kB / 0.5846 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.189e-05/0.6255, allocations: 2.828 kB / 0.5846 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.84e-05/0.6256, allocations: 14.98 kB / 0.5846 GB, free: 2.824 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.6257, allocations: 20.2 kB / 0.5846 GB, free: 2.812 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/0.6257, allocations: 1.75 kB / 0.5846 GB, free: 2.812 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003267/0.6261, allocations: 85.22 kB / 0.5847 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.6261, allocations: 11.66 kB / 0.5847 GB, free: 2.785 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.293e-05/0.6262, allocations: 28.61 kB / 0.5847 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.6264, allocations: 42.14 kB / 0.5848 GB, free: 2.742 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.6264, allocations: 0.8438 kB / 0.5848 GB, free: 2.742 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.6264, allocations: 3.938 kB / 0.5848 GB, free: 2.738 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.545e-06/0.6264, allocations: 0 / 0.5848 GB, free: 2.738 MB / 430.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.0005782/0.627, allocations: 340.6 kB / 0.5851 GB, free: 2.379 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.277e-05/0.6271, allocations: 9.75 kB / 0.5851 GB, free: 2.379 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.591e-05/0.6271, allocations: 36.95 kB / 0.5851 GB, free: 2.336 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.684e-05/0.6272, allocations: 6.688 kB / 0.5851 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.6273, allocations: 168.2 kB / 0.5853 GB, free: 2.129 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.6273, allocations: 2 kB / 0.5853 GB, free: 2.129 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.033e-05/0.6274, allocations: 7.766 kB / 0.5853 GB, free: 2.125 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001516/0.6275, allocations: 51.25 kB / 0.5854 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.6275, allocations: 0.9688 kB / 0.5854 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.6276, allocations: 0 / 0.5854 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.6276, allocations: 0.9688 kB / 0.5854 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.409e-05/0.6277, allocations: 30.67 kB / 0.5854 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002139/0.6279, allocations: 178 kB / 0.5856 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.6281, allocations: 60.69 kB / 0.5856 GB, free: 1.824 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005907/0.6287, allocations: 0.5545 MB / 0.5862 GB, free: 1.168 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.6287, allocations: 36.47 kB / 0.5862 GB, free: 1.125 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 2.074e-06/0.6288, allocations: 4 kB / 0.5862 GB, free: 1.121 MB / 430.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.02277/0.6515, allocations: 4.195 MB / 0.5903 GB, free: 15.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.6517, allocations: 61.33 kB / 0.5904 GB, free: 15.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.561e-05/0.6518, allocations: 92.83 kB / 0.5904 GB, free: 15.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.428e-05/0.6518, allocations: 27.83 kB / 0.5905 GB, free: 15.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.873e-05/0.6519, allocations: 88.27 kB / 0.5906 GB, free: 15.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.652, allocations: 55.19 kB / 0.5906 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.338e-05/0.6521, allocations: 4 kB / 0.5906 GB, free: 15.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.6523, allocations: 324 kB / 0.5909 GB, free: 14.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006281/0.6529, allocations: 306.2 kB / 0.5912 GB, free: 14.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006345/0.6536, allocations: 311.8 kB / 0.5915 GB, free: 14.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009352/0.6545, allocations: 379.3 kB / 0.5919 GB, free: 14.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.6545, allocations: 0 / 0.5919 GB, free: 14.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002241/0.6568, allocations: 0.7906 MB / 0.5926 GB, free: 13.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.6568, allocations: 10.06 kB / 0.5927 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.6569, allocations: 4 kB / 0.5927 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.6569, allocations: 1.75 kB / 0.5927 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.6582, allocations: 96.83 kB / 0.5927 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.6582, allocations: 7.891 kB / 0.5928 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007871/0.659, allocations: 11.62 kB / 0.5928 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/0.6592, allocations: 31.3 kB / 0.5928 GB, free: 13.95 MB / 446.1 MB 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.0003686/0.6596, allocations: 117.7 kB / 0.5929 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.6597, allocations: 2.75 kB / 0.5929 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005064/0.6648, allocations: 1.4 MB / 0.5943 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.6648, allocations: 3.594 kB / 0.5943 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.6649, allocations: 0.7969 kB / 0.5943 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.6649, allocations: 5.312 kB / 0.5943 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003851/0.6687, allocations: 1.795 MB / 0.596 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.6688, allocations: 0.6094 kB / 0.596 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008658/0.6696, allocations: 114.8 kB / 0.5962 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.265e-06/0.6697, allocations: 0.9375 kB / 0.5962 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.749e-05/0.6698, allocations: 27.22 kB / 0.5962 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.6698, allocations: 3.031 kB / 0.5962 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6698, allocations: 0 / 0.5962 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.6724, allocations: 1.477 MB / 0.5976 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.246e-05/0.6725, allocations: 90.88 kB / 0.5977 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.6726, allocations: 7.094 kB / 0.5977 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005673/0.6732, allocations: 10.5 kB / 0.5977 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.6733, allocations: 43.22 kB / 0.5978 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.231e-05/0.6734, allocations: 33 kB / 0.5978 GB, free: 11.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.482e-05/0.6735, allocations: 76.08 kB / 0.5979 GB, free: 11.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6735, allocations: 160 / 0.5979 GB, free: 11.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007481/0.6742, allocations: 177.3 kB / 0.598 GB, free: 11.1 MB / 446.1 MB 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.003781/0.678, allocations: 2.186 MB / 0.6002 GB, free: 9.695 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002476/0.6805, allocations: 0.7256 MB / 0.6009 GB, free: 9.402 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.6806, allocations: 0 / 0.6009 GB, free: 9.402 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.6819, allocations: 453.2 kB / 0.6013 GB, free: 9.203 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.6823, allocations: 15.73 kB / 0.6013 GB, free: 9.195 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007525/0.6898, allocations: 2.147 MB / 0.6034 GB, free: 8.102 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.6902, allocations: 0.7214 MB / 0.6041 GB, free: 7.402 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001632/0.6918, allocations: 293.5 kB / 0.6044 GB, free: 7.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006398/0.6925, allocations: 117.9 kB / 0.6045 GB, free: 7.207 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6925, allocations: 0 / 0.6045 GB, free: 7.207 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03718/0.7297, allocations: 11.6 MB / 0.6159 GB, free: 14.46 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003114/0.7301, allocations: 198.1 kB / 0.616 GB, free: 14.22 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.972/3.702, allocations: 3.75 kB / 0.616 GB, free: 14.22 MB / 462.1 MB (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) Environment - environmentSimulation: