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.009668/0.009668, allocations: 97.58 kB / 15.73 MB, free: 5.996 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.002084/0.002084, allocations: 186.8 kB / 16.67 MB, free: 5.926 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.468/1.468, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9941/0.9941, allocations: 135.6 MB / 426.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 67.89 kB / 0.5858 GB, free: 3.156 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4115/0.4135, allocations: 81.02 MB / 0.6649 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00166/0.4152, allocations: 0.5988 MB / 0.6655 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00154/0.4168, allocations: 1.271 MB / 0.6667 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.704e-05/0.4168, allocations: 0 / 0.6667 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.044e-05/0.4169, allocations: 7.875 kB / 0.6668 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.021e-05/0.4169, allocations: 5.219 kB / 0.6668 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003588/0.4173, allocations: 76.39 kB / 0.6668 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.839e-05/0.4174, allocations: 23.16 kB / 0.6669 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.015e-05/0.4174, allocations: 1.562 kB / 0.6669 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.004e-05/0.4174, allocations: 5.094 kB / 0.6669 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.33e-05/0.4175, allocations: 17.36 kB / 0.6669 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.4175, allocations: 1.625 kB / 0.6669 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001897/0.4177, allocations: 94.36 kB / 0.667 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.42e-05/0.4177, allocations: 9.266 kB / 0.667 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.219e-05/0.4178, allocations: 19.92 kB / 0.667 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.4179, allocations: 57.7 kB / 0.667 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4179, allocations: 5.25 kB / 0.6671 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.193e-06/0.4179, allocations: 0 / 0.6671 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.315e-06/0.4179, allocations: 0 / 0.6671 GB, free: 5.168 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.0003275/0.4183, allocations: 351.5 kB / 0.6674 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.4183, allocations: 9.625 kB / 0.6674 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.428e-05/0.4183, allocations: 43.91 kB / 0.6674 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.501e-05/0.4184, allocations: 7.609 kB / 0.6674 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.684e-05/0.4184, allocations: 164.4 kB / 0.6676 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.4184, allocations: 6.781 kB / 0.6676 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.4185, allocations: 6.812 kB / 0.6676 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.4186, allocations: 53.11 kB / 0.6677 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.4186, allocations: 5.359 kB / 0.6677 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.4186, allocations: 4 kB / 0.6677 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.4186, allocations: 1.375 kB / 0.6677 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.111e-05/0.4187, allocations: 25.23 kB / 0.6677 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001235/0.4188, allocations: 162.3 kB / 0.6679 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.4189, allocations: 59.84 kB / 0.6679 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.155e-05/0.419, allocations: 25.06 kB / 0.6679 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003317/0.4193, allocations: 0.5571 MB / 0.6685 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/0.4193, allocations: 39.92 kB / 0.6685 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.4193, allocations: 0 / 0.6685 GB, free: 3.492 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.01879/0.4381, allocations: 4.312 MB / 0.6727 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/0.4382, allocations: 53.59 kB / 0.6728 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.012e-05/0.4383, allocations: 92.08 kB / 0.6729 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.349e-05/0.4383, allocations: 33.77 kB / 0.6729 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.352e-05/0.4383, allocations: 85.39 kB / 0.673 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.817e-05/0.4384, allocations: 57.88 kB / 0.673 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002454/0.4387, allocations: 93 kB / 0.6731 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.74e-05/0.4387, allocations: 320.6 kB / 0.6734 GB, free: 364 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004596/0.4392, allocations: 308.9 kB / 0.6737 GB, free: 200 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004525/0.4397, allocations: 318.3 kB / 0.674 GB, free: 32 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/0.4412, allocations: 0.7459 MB / 0.6748 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4412, allocations: 0 / 0.6748 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001624/0.4429, allocations: 0.7946 MB / 0.6755 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.4429, allocations: 4.969 kB / 0.6755 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.4429, allocations: 1.188 kB / 0.6755 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.4429, allocations: 1.125 kB / 0.6755 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008464/0.4438, allocations: 95.95 kB / 0.6756 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.4438, allocations: 5.109 kB / 0.6756 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005319/0.4443, allocations: 5.562 kB / 0.6756 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.151e-05/0.4444, allocations: 39.39 kB / 0.6757 GB, free: 15.23 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.0001882/0.4446, allocations: 121.4 kB / 0.6758 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.4447, allocations: 11.42 kB / 0.6758 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003197/0.4479, allocations: 1.388 MB / 0.6772 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.4479, allocations: 4.625 kB / 0.6772 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.448, allocations: 0 / 0.6772 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.448, allocations: 0 / 0.6772 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002996/0.451, allocations: 1.812 MB / 0.6789 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.451, allocations: 1.312 kB / 0.6789 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007992/0.4518, allocations: 108.2 kB / 0.679 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.4518, allocations: 6.609 kB / 0.679 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.401e-05/0.4519, allocations: 29.78 kB / 0.6791 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.4519, allocations: 1.594 kB / 0.6791 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.4519, allocations: 1.438 kB / 0.6791 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002472/0.4544, allocations: 1.46 MB / 0.6805 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.4545, allocations: 99.23 kB / 0.6806 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.174e-05/0.4546, allocations: 9.938 kB / 0.6806 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005358/0.4551, allocations: 10.19 kB / 0.6806 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.4553, allocations: 41.34 kB / 0.6807 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.846e-05/0.4554, allocations: 34.92 kB / 0.6807 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.047e-05/0.4554, allocations: 80.66 kB / 0.6808 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.71e-07/0.4554, allocations: 0 / 0.6808 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006031/0.456, allocations: 175.8 kB / 0.6809 GB, free: 11.91 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.003283/0.4593, allocations: 2.121 MB / 0.683 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00146/0.4608, allocations: 0.729 MB / 0.6837 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.4608, allocations: 0 / 0.6837 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006684/0.4615, allocations: 457.2 kB / 0.6842 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.4618, allocations: 11.56 kB / 0.6842 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008138/0.47, allocations: 3.709 MB / 0.6878 GB, free: 7.422 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.4704, allocations: 0.7182 MB / 0.6885 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001033/0.4714, allocations: 289.8 kB / 0.6888 GB, free: 6.562 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005755/0.472, allocations: 116.8 kB / 0.6889 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of SimCode: time 7.61e-07/0.472, allocations: 1.219 kB / 0.6889 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04696/0.519, allocations: 12.69 MB / 0.7013 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.081/8.6, allocations: 6.125 kB / 0.7013 GB, free: 11.09 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)