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.0009683/0.0009683, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.001196/0.001196, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.251/1.251, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6845/0.6845, allocations: 132.3 MB / 423.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002777, allocations: 8 kB / 0.5041 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3601, allocations: 81.58 MB / 0.5838 GB, free: 4.051 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0007153/0.3608, allocations: 348.5 kB / 0.5841 GB, free: 3.816 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.3623, allocations: 1.267 MB / 0.5853 GB, free: 2.887 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.72e-05/0.3624, allocations: 0 / 0.5853 GB, free: 2.887 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.247e-05/0.3624, allocations: 7.938 kB / 0.5853 GB, free: 2.879 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.367e-05/0.3624, allocations: 0 / 0.5853 GB, free: 2.879 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.3628, allocations: 52.25 kB / 0.5854 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.15e-05/0.3628, allocations: 18.34 kB / 0.5854 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.927e-05/0.3629, allocations: 1.875 kB / 0.5854 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.477e-05/0.3629, allocations: 15.73 kB / 0.5854 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.064e-05/0.363, allocations: 19.56 kB / 0.5854 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.363, allocations: 1.719 kB / 0.5854 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000222/0.3632, allocations: 89.92 kB / 0.5855 GB, free: 2.812 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.524e-05/0.3632, allocations: 11.95 kB / 0.5855 GB, free: 2.805 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.675e-05/0.3633, allocations: 38.91 kB / 0.5856 GB, free: 2.766 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.3634, allocations: 61.62 kB / 0.5856 GB, free: 2.746 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.3634, allocations: 0 / 0.5856 GB, free: 2.746 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3634, allocations: 0.875 kB / 0.5856 GB, free: 2.746 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.3634, allocations: 0 / 0.5856 GB, free: 2.746 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.0003148/0.3637, allocations: 348.3 kB / 0.586 GB, free: 2.379 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.3638, allocations: 9.469 kB / 0.586 GB, free: 2.379 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.738e-05/0.3638, allocations: 37.83 kB / 0.586 GB, free: 2.336 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.694e-05/0.3638, allocations: 7.812 kB / 0.586 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.254e-05/0.3639, allocations: 161 kB / 0.5862 GB, free: 2.137 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.3639, allocations: 2.188 kB / 0.5862 GB, free: 2.137 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.364, allocations: 8.938 kB / 0.5862 GB, free: 2.133 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001219/0.3641, allocations: 51.67 kB / 0.5862 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3641, allocations: 0 / 0.5862 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.3641, allocations: 5.625 kB / 0.5862 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3641, allocations: 0.7969 kB / 0.5862 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.172e-05/0.3642, allocations: 26.83 kB / 0.5863 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001206/0.3643, allocations: 177.9 kB / 0.5864 GB, free: 1.871 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.3644, allocations: 61.86 kB / 0.5865 GB, free: 1.832 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.034e-05/0.3645, allocations: 22.83 kB / 0.5865 GB, free: 1.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003093/0.3648, allocations: 0.5537 MB / 0.5871 GB, free: 1.164 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.3648, allocations: 44.45 kB / 0.5871 GB, free: 1.113 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.3648, allocations: 0 / 0.5871 GB, free: 1.113 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.01882/0.3837, allocations: 4.207 MB / 0.5912 GB, free: 15.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.3837, allocations: 57.91 kB / 0.5913 GB, free: 15.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.551e-05/0.3838, allocations: 92.02 kB / 0.5914 GB, free: 15.19 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.958e-05/0.3839, allocations: 35.23 kB / 0.5914 GB, free: 15.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.48e-05/0.3839, allocations: 80.14 kB / 0.5915 GB, free: 15.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.384, allocations: 59.11 kB / 0.5915 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.121e-05/0.3841, allocations: 20.67 kB / 0.5915 GB, free: 15 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.479e-05/0.3842, allocations: 322.2 kB / 0.5918 GB, free: 14.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005238/0.3847, allocations: 306.9 kB / 0.5921 GB, free: 14.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000512/0.3853, allocations: 309.3 kB / 0.5924 GB, free: 14.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001545/0.3868, allocations: 0.7538 MB / 0.5932 GB, free: 14.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3868, allocations: 0.5938 kB / 0.5932 GB, free: 14.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001629/0.3885, allocations: 0.7934 MB / 0.5939 GB, free: 13.76 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.3885, allocations: 7.594 kB / 0.594 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.3885, allocations: 3.938 kB / 0.594 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.3885, allocations: 2.25 kB / 0.594 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007988/0.3893, allocations: 91.14 kB / 0.594 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.3894, allocations: 1.969 kB / 0.594 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005229/0.3899, allocations: 9.219 kB / 0.5941 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.472e-05/0.39, allocations: 34.17 kB / 0.5941 GB, free: 13.75 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001966/0.3902, allocations: 130.6 kB / 0.5942 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.343e-05/0.3903, allocations: 3.906 kB / 0.5942 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.3936, allocations: 1.393 MB / 0.5956 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3936, allocations: 3.562 kB / 0.5956 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3936, allocations: 2.156 kB / 0.5956 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.3936, allocations: 1.828 kB / 0.5956 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.3964, allocations: 1.799 MB / 0.5973 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3964, allocations: 1.25 kB / 0.5973 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007343/0.3972, allocations: 110.7 kB / 0.5974 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.3972, allocations: 1.219 kB / 0.5974 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-05/0.3973, allocations: 30.95 kB / 0.5975 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.3973, allocations: 9.5 kB / 0.5975 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3973, allocations: 5.828 kB / 0.5975 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.3996, allocations: 1.458 MB / 0.5989 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.605e-05/0.3997, allocations: 91.33 kB / 0.599 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.29e-05/0.3998, allocations: 15.77 kB / 0.599 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005088/0.4003, allocations: 9.281 kB / 0.599 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.4004, allocations: 43.14 kB / 0.5991 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.716e-05/0.4005, allocations: 29.16 kB / 0.5991 GB, free: 11.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.987e-05/0.4005, allocations: 80.72 kB / 0.5992 GB, free: 10.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4005, allocations: 0 / 0.5992 GB, free: 10.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005849/0.4011, allocations: 173 kB / 0.5993 GB, free: 10.91 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 (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.002954/0.4041, allocations: 2.112 MB / 0.6014 GB, free: 9.594 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.4053, allocations: 0.7302 MB / 0.6021 GB, free: 9.297 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4053, allocations: 0 / 0.6021 GB, free: 9.297 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006326/0.406, allocations: 452.5 kB / 0.6025 GB, free: 9.102 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.4063, allocations: 17.39 kB / 0.6026 GB, free: 9.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007138/0.4134, allocations: 3.761 MB / 0.6062 GB, free: 6.676 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.4136, allocations: 0.7182 MB / 0.6069 GB, free: 5.965 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001362/0.415, allocations: 297.6 kB / 0.6072 GB, free: 5.809 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005483/0.4156, allocations: 118.1 kB / 0.6073 GB, free: 5.766 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4156, allocations: 0 / 0.6073 GB, free: 5.766 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1974/0.613, allocations: 11.87 MB / 0.6189 GB, free: 11.96 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/0.6132, allocations: 214.1 kB / 0.6191 GB, free: 11.71 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.283, allocations: 0 / 0.6191 GB, free: 11.71 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/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)