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.008301/0.008301, allocations: 105.5 kB / 15.74 MB, free: 6.008 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.002191/0.002192, allocations: 196.5 kB / 16.68 MB, free: 5.93 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7301/0.7301, allocations: 132.2 MB / 422.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.89 kB / 0.5809 GB, free: 7.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.412, allocations: 80.19 MB / 0.6592 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001647/0.4137, allocations: 0.6169 MB / 0.6598 GB, free: 9.539 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.4152, allocations: 1.267 MB / 0.6611 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.529e-05/0.4152, allocations: 1.219 kB / 0.6611 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.441e-05/0.4153, allocations: 3.938 kB / 0.6611 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.665e-05/0.4153, allocations: 0 / 0.6611 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.4157, allocations: 75.47 kB / 0.6611 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.724e-05/0.4158, allocations: 27.2 kB / 0.6612 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.153e-05/0.4158, allocations: 3.812 kB / 0.6612 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.23e-05/0.4158, allocations: 5.719 kB / 0.6612 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.899e-05/0.4159, allocations: 16.88 kB / 0.6612 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.4159, allocations: 6.188 kB / 0.6612 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.4161, allocations: 97.33 kB / 0.6613 GB, free: 8.52 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.609e-05/0.4162, allocations: 8.031 kB / 0.6613 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.847e-05/0.4162, allocations: 17.2 kB / 0.6613 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.4164, allocations: 65.34 kB / 0.6614 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4164, allocations: 1.062 kB / 0.6614 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.313e-06/0.4164, allocations: 0 / 0.6614 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.4164, allocations: 0 / 0.6614 GB, free: 8.48 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.0003871/0.4168, allocations: 345.9 kB / 0.6617 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.4168, allocations: 10 kB / 0.6617 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.752e-05/0.4169, allocations: 37 kB / 0.6618 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.666e-05/0.4169, allocations: 11.09 kB / 0.6618 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.268e-05/0.417, allocations: 165.5 kB / 0.6619 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.417, allocations: 4.078 kB / 0.6619 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.417, allocations: 6.875 kB / 0.6619 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.4171, allocations: 55.61 kB / 0.662 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.4171, allocations: 0 / 0.662 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.4172, allocations: 6.047 kB / 0.662 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.4172, allocations: 1.312 kB / 0.662 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.564e-05/0.4172, allocations: 21.36 kB / 0.662 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001241/0.4174, allocations: 167.3 kB / 0.6622 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.976e-05/0.4175, allocations: 68.98 kB / 0.6622 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.937e-05/0.4175, allocations: 22.98 kB / 0.6623 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003167/0.4178, allocations: 0.553 MB / 0.6628 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/0.4179, allocations: 44.44 kB / 0.6628 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.4179, allocations: 5.656 kB / 0.6629 GB, free: 6.848 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.01842/0.4363, allocations: 4.3 MB / 0.667 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.696e-05/0.4364, allocations: 52.53 kB / 0.6671 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.986e-05/0.4364, allocations: 100.3 kB / 0.6672 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.182e-05/0.4365, allocations: 29.7 kB / 0.6672 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.218e-05/0.4365, allocations: 81.61 kB / 0.6673 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.4366, allocations: 53.42 kB / 0.6674 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.4368, allocations: 92.03 kB / 0.6674 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.336e-05/0.4369, allocations: 321 kB / 0.6677 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000479/0.4374, allocations: 314 kB / 0.668 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000478/0.4379, allocations: 314.4 kB / 0.6683 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.4392, allocations: 0.7486 MB / 0.6691 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.4392, allocations: 1.375 kB / 0.6691 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00143/0.4407, allocations: 0.7915 MB / 0.6699 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.4407, allocations: 7.594 kB / 0.6699 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.4407, allocations: 0 / 0.6699 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.4407, allocations: 1.031 kB / 0.6699 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007541/0.4415, allocations: 96.94 kB / 0.67 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.4415, allocations: 400 / 0.67 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004458/0.442, allocations: 6.219 kB / 0.67 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.537e-05/0.4421, allocations: 31.11 kB / 0.67 GB, free: 2.742 MB / 0.4981 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.0001494/0.4422, allocations: 130.1 kB / 0.6701 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.642e-05/0.4423, allocations: 6.875 kB / 0.6701 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002778/0.4451, allocations: 1.396 MB / 0.6715 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.4451, allocations: 4.719 kB / 0.6715 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4451, allocations: 0 / 0.6715 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.4451, allocations: 1.156 kB / 0.6715 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.4476, allocations: 1.807 MB / 0.6733 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4476, allocations: 5.219 kB / 0.6733 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007078/0.4483, allocations: 112.2 kB / 0.6734 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.4483, allocations: 3.531 kB / 0.6734 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.22e-05/0.4484, allocations: 28.72 kB / 0.6734 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4484, allocations: 1.375 kB / 0.6734 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4484, allocations: 5.625 kB / 0.6734 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.4506, allocations: 1.454 MB / 0.6748 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-05/0.4506, allocations: 93.36 kB / 0.6749 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.274e-05/0.4507, allocations: 10.19 kB / 0.6749 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004436/0.4512, allocations: 10.59 kB / 0.6749 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.4513, allocations: 46.22 kB / 0.675 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.984e-05/0.4514, allocations: 38.8 kB / 0.675 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 2.876e-05/0.4514, allocations: 76.62 kB / 0.6751 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4514, allocations: 0 / 0.6751 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005631/0.452, allocations: 175.2 kB / 0.6753 GB, free: 15.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.002861/0.4549, allocations: 2.115 MB / 0.6773 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001199/0.4561, allocations: 0.7306 MB / 0.678 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4561, allocations: 0 / 0.678 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006475/0.4568, allocations: 455.6 kB / 0.6785 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.4571, allocations: 12.25 kB / 0.6785 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006913/0.464, allocations: 3.71 MB / 0.6821 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.4643, allocations: 0.719 MB / 0.6828 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001037/0.4653, allocations: 292.6 kB / 0.6831 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005372/0.4658, allocations: 113.8 kB / 0.6832 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of SimCode: time 6.41e-07/0.4658, allocations: 0 / 0.6832 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.5005, allocations: 12.67 MB / 0.6956 GB, free: 468 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.546/8.047, allocations: 4.938 kB / 0.6956 GB, free: 464 kB / 0.5137 GB (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)