Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_dev_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.007139/0.007139, allocations: 102.6 kB / 15.73 MB, free: 6.035 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.001739/0.001739, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9611/0.9611, allocations: 135.1 MB / 425.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 67.91 kB / 0.5852 GB, free: 3.816 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4503/0.4516, allocations: 80.9 MB / 0.6642 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001909/0.4536, allocations: 0.6177 MB / 0.6648 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.4551, allocations: 1.271 MB / 0.666 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.948e-05/0.4551, allocations: 0 / 0.666 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.819e-05/0.4552, allocations: 5.312 kB / 0.666 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.006e-05/0.4552, allocations: 0 / 0.666 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003611/0.4556, allocations: 75.75 kB / 0.6661 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.018e-05/0.4556, allocations: 19.36 kB / 0.6661 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.469e-05/0.4557, allocations: 1.625 kB / 0.6661 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.269e-05/0.4557, allocations: 9.391 kB / 0.6661 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.979e-05/0.4558, allocations: 21.12 kB / 0.6662 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.4558, allocations: 5.062 kB / 0.6662 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.456, allocations: 98.77 kB / 0.6663 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.456, allocations: 9.281 kB / 0.6663 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.355e-05/0.456, allocations: 11.94 kB / 0.6663 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000128/0.4562, allocations: 62.12 kB / 0.6663 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4562, allocations: 0 / 0.6663 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.175e-06/0.4562, allocations: 0 / 0.6663 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.4562, allocations: 3.938 kB / 0.6663 GB, free: 5.645 MB / 0.4981 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.0004196/0.4566, allocations: 346.7 kB / 0.6667 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.4567, allocations: 12.88 kB / 0.6667 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.81e-05/0.4567, allocations: 40.08 kB / 0.6667 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.128e-05/0.4568, allocations: 3.469 kB / 0.6667 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.348e-05/0.4569, allocations: 164.8 kB / 0.6669 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.4569, allocations: 3.094 kB / 0.6669 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.486e-05/0.4569, allocations: 6.531 kB / 0.6669 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.4571, allocations: 61.09 kB / 0.667 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.4571, allocations: 1.438 kB / 0.667 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.4571, allocations: 7.984 kB / 0.667 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.4571, allocations: 5.375 kB / 0.667 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.528e-05/0.4572, allocations: 21.58 kB / 0.667 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.4574, allocations: 165.6 kB / 0.6672 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.4575, allocations: 60.39 kB / 0.6672 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.254e-05/0.4576, allocations: 20.42 kB / 0.6672 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003962/0.458, allocations: 0.5601 MB / 0.6678 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.458, allocations: 43.77 kB / 0.6678 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.458, allocations: 1.312 kB / 0.6678 GB, free: 3.969 MB / 0.4981 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.01867/0.4767, allocations: 4.291 MB / 0.672 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.4768, allocations: 53.19 kB / 0.6721 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.754e-05/0.4768, allocations: 95.23 kB / 0.6722 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.4769, allocations: 26.95 kB / 0.6722 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.548e-05/0.4769, allocations: 81.36 kB / 0.6723 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.473e-05/0.477, allocations: 61.66 kB / 0.6723 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002507/0.4772, allocations: 96.19 kB / 0.6724 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.066e-05/0.4773, allocations: 317.2 kB / 0.6727 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004594/0.4778, allocations: 322 kB / 0.673 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004605/0.4782, allocations: 313.4 kB / 0.6733 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.4796, allocations: 0.753 MB / 0.674 GB, free: 156 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4796, allocations: 0 / 0.674 GB, free: 156 kB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001575/0.4812, allocations: 0.7912 MB / 0.6748 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.4812, allocations: 5.125 kB / 0.6748 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.4812, allocations: 0 / 0.6748 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.4813, allocations: 1.344 kB / 0.6748 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008622/0.4821, allocations: 96.97 kB / 0.6749 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/0.4821, allocations: 0.9375 kB / 0.6749 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005268/0.4827, allocations: 9.844 kB / 0.6749 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.354e-05/0.4828, allocations: 36.17 kB / 0.675 GB, free: 15.73 MB / 0.5137 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.0001837/0.483, allocations: 122.3 kB / 0.6751 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.558e-05/0.4831, allocations: 10.73 kB / 0.6751 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002933/0.486, allocations: 1.385 MB / 0.6764 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.486, allocations: 4.312 kB / 0.6764 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.486, allocations: 0 / 0.6764 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.486, allocations: 0 / 0.6764 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002953/0.489, allocations: 1.821 MB / 0.6782 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.489, allocations: 0 / 0.6782 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007777/0.4898, allocations: 105.3 kB / 0.6783 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.4898, allocations: 6.281 kB / 0.6783 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-05/0.4899, allocations: 29.78 kB / 0.6784 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.4899, allocations: 1.156 kB / 0.6784 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4899, allocations: 1.156 kB / 0.6784 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.4922, allocations: 1.454 MB / 0.6798 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.4923, allocations: 93.67 kB / 0.6799 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.855e-05/0.4924, allocations: 14.45 kB / 0.6799 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005196/0.4929, allocations: 18.31 kB / 0.6799 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.4931, allocations: 46.42 kB / 0.6799 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.552e-05/0.4931, allocations: 29.66 kB / 0.68 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.896e-05/0.4932, allocations: 76.47 kB / 0.68 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4932, allocations: 3.938 kB / 0.6801 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005855/0.4938, allocations: 172.1 kB / 0.6802 GB, free: 12.41 MB / 0.5137 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.003028/0.4968, allocations: 2.126 MB / 0.6823 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001285/0.4981, allocations: 0.7224 MB / 0.683 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4981, allocations: 0 / 0.683 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006334/0.4988, allocations: 456 kB / 0.6834 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.4991, allocations: 12.25 kB / 0.6834 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007627/0.5067, allocations: 3.709 MB / 0.6871 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.5071, allocations: 0.7142 MB / 0.6878 GB, free: 7.223 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001061/0.5081, allocations: 301.6 kB / 0.6881 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005843/0.5087, allocations: 116.9 kB / 0.6882 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/0.5087, allocations: 0 / 0.6882 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03764/0.5464, allocations: 12.96 MB / 0.7008 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.556/8.102, allocations: 11.69 kB / 0.7008 GB, free: 11.56 MB / 0.5294 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)