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.001521/0.001521, allocations: 108 kB / 15.61 MB, free: 152 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.001165/0.001165, allocations: 195.9 kB / 16.53 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.266/1.266, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7255/0.7255, allocations: 132.2 MB / 422.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 63.62 kB / 0.5019 GB, free: 3.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3951/0.3965, allocations: 80.2 MB / 0.5802 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001623/0.3982, allocations: 0.6177 MB / 0.5808 GB, free: 4.191 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.3995, allocations: 1.27 MB / 0.582 GB, free: 3.258 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.382e-05/0.3995, allocations: 0 / 0.582 GB, free: 3.258 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.466e-05/0.3996, allocations: 3.938 kB / 0.582 GB, free: 3.254 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 1.661e-05/0.3996, allocations: 0.9375 kB / 0.582 GB, free: 3.254 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.3999, allocations: 71.97 kB / 0.5821 GB, free: 3.223 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.993e-05/0.4, allocations: 22.03 kB / 0.5821 GB, free: 3.215 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.873e-05/0.4, allocations: 8.094 kB / 0.5821 GB, free: 3.211 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.06e-05/0.4, allocations: 14.56 kB / 0.5822 GB, free: 3.203 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.715e-05/0.4001, allocations: 16.66 kB / 0.5822 GB, free: 3.195 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.4001, allocations: 2.312 kB / 0.5822 GB, free: 3.195 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.4003, allocations: 101.1 kB / 0.5823 GB, free: 3.164 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.372e-05/0.4004, allocations: 3.031 kB / 0.5823 GB, free: 3.164 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.366e-05/0.4004, allocations: 17.2 kB / 0.5823 GB, free: 3.152 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.4005, allocations: 62.34 kB / 0.5824 GB, free: 3.133 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.4005, allocations: 1.375 kB / 0.5824 GB, free: 3.133 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4005, allocations: 0 / 0.5824 GB, free: 3.133 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.4006, allocations: 0 / 0.5824 GB, free: 3.133 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.0003543/0.4009, allocations: 356.6 kB / 0.5827 GB, free: 2.762 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.401, allocations: 9.656 kB / 0.5827 GB, free: 2.762 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.044e-05/0.401, allocations: 33.14 kB / 0.5827 GB, free: 2.723 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.8e-05/0.401, allocations: 3.844 kB / 0.5827 GB, free: 2.723 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.584e-05/0.4011, allocations: 161.8 kB / 0.5829 GB, free: 2.527 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.4011, allocations: 6.5 kB / 0.5829 GB, free: 2.523 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.4011, allocations: 3.656 kB / 0.5829 GB, free: 2.523 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.4012, allocations: 60.44 kB / 0.583 GB, free: 2.477 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.4013, allocations: 4.625 kB / 0.583 GB, free: 2.473 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.4013, allocations: 5.188 kB / 0.583 GB, free: 2.469 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.4013, allocations: 0 / 0.583 GB, free: 2.469 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.526e-05/0.4014, allocations: 22.94 kB / 0.583 GB, free: 2.465 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001205/0.4015, allocations: 170.1 kB / 0.5832 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.4016, allocations: 61.38 kB / 0.5832 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.099e-05/0.4016, allocations: 27.78 kB / 0.5832 GB, free: 2.207 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003291/0.402, allocations: 0.5569 MB / 0.5838 GB, free: 1.547 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/0.402, allocations: 41.66 kB / 0.5838 GB, free: 1.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.763e-06/0.402, allocations: 0 / 0.5838 GB, free: 1.5 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.02076/0.4228, allocations: 4.301 MB / 0.588 GB, free: 15.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.4229, allocations: 58.92 kB / 0.5881 GB, free: 15.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.715e-05/0.4229, allocations: 91.47 kB / 0.5882 GB, free: 15.53 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.423, allocations: 26.48 kB / 0.5882 GB, free: 15.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.026e-05/0.423, allocations: 85.58 kB / 0.5883 GB, free: 15.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.4232, allocations: 50.47 kB / 0.5883 GB, free: 15.37 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/0.4234, allocations: 97.53 kB / 0.5884 GB, free: 15.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.833e-05/0.4235, allocations: 323.5 kB / 0.5887 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005665/0.4241, allocations: 306.8 kB / 0.589 GB, free: 14.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006017/0.4247, allocations: 311.5 kB / 0.5893 GB, free: 14.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.4263, allocations: 0.7504 MB / 0.59 GB, free: 14.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.4264, allocations: 1.312 kB / 0.59 GB, free: 14.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001664/0.428, allocations: 0.7943 MB / 0.5908 GB, free: 14.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.4281, allocations: 5.719 kB / 0.5908 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.4281, allocations: 1.219 kB / 0.5908 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.4281, allocations: 4 kB / 0.5908 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009032/0.429, allocations: 91.97 kB / 0.5909 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.429, allocations: 1.344 kB / 0.5909 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005652/0.4296, allocations: 12.88 kB / 0.5909 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-05/0.4297, allocations: 33.5 kB / 0.591 GB, free: 14.09 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.0002003/0.4299, allocations: 131.2 kB / 0.5911 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.092e-05/0.43, allocations: 7.969 kB / 0.5911 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003365/0.4334, allocations: 1.392 MB / 0.5925 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.4334, allocations: 4.594 kB / 0.5925 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4334, allocations: 0.7969 kB / 0.5925 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.4334, allocations: 2.609 kB / 0.5925 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003053/0.4365, allocations: 1.801 MB / 0.5942 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4365, allocations: 0 / 0.5942 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008321/0.4373, allocations: 106.6 kB / 0.5943 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.4373, allocations: 1.969 kB / 0.5943 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.298e-05/0.4374, allocations: 34.95 kB / 0.5944 GB, free: 12.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.4374, allocations: 1.25 kB / 0.5944 GB, free: 12.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4374, allocations: 5.891 kB / 0.5944 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.4398, allocations: 1.455 MB / 0.5958 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.662e-05/0.4399, allocations: 91.41 kB / 0.5959 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.44, allocations: 14.72 kB / 0.5959 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005589/0.4405, allocations: 14.89 kB / 0.5959 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.4407, allocations: 43.45 kB / 0.5959 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.155e-05/0.4408, allocations: 35.31 kB / 0.596 GB, free: 11.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.118e-05/0.4408, allocations: 77.28 kB / 0.596 GB, free: 11.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4408, allocations: 0 / 0.596 GB, free: 11.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006324/0.4415, allocations: 173.4 kB / 0.5962 GB, free: 11.25 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.003135/0.4446, allocations: 2.115 MB / 0.5983 GB, free: 9.926 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.4461, allocations: 0.7432 MB / 0.599 GB, free: 9.621 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4461, allocations: 0 / 0.599 GB, free: 9.621 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000673/0.4468, allocations: 450.4 kB / 0.5994 GB, free: 9.426 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.4471, allocations: 19.11 kB / 0.5995 GB, free: 9.414 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007855/0.455, allocations: 3.71 MB / 0.6031 GB, free: 7.148 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.4552, allocations: 0.7148 MB / 0.6038 GB, free: 6.441 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001484/0.4567, allocations: 296.9 kB / 0.6041 GB, free: 6.285 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005758/0.4573, allocations: 118.1 kB / 0.6042 GB, free: 6.242 MB / 446.1 MB Notification: Performance of SimCode: time 1.833e-06/0.4573, allocations: 1.281 kB / 0.6042 GB, free: 6.242 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.012/1.47, allocations: 12.61 MB / 0.6165 GB, free: 11.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/12.63, allocations: 5.781 kB / 0.6165 GB, free: 11.87 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)