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.005399/0.005399, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001301/0.001302, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7697/0.7697, allocations: 132.2 MB / 422.7 MB, free: 6.613 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 68.3 kB / 0.5809 GB, free: 23.94 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.138, allocations: 80.21 MB / 0.6592 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001831/0.1399, allocations: 0.6051 MB / 0.6598 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.1415, allocations: 1.278 MB / 0.6611 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.477e-05/0.1415, allocations: 0 / 0.6611 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.277e-05/0.1415, allocations: 0 / 0.6611 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.276e-05/0.1416, allocations: 3.938 kB / 0.6611 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.1419, allocations: 79.73 kB / 0.6612 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.326e-05/0.142, allocations: 23.91 kB / 0.6612 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.929e-05/0.1421, allocations: 7.984 kB / 0.6612 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.248e-05/0.1421, allocations: 11.98 kB / 0.6612 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.374e-05/0.1422, allocations: 15.92 kB / 0.6612 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.1422, allocations: 4 kB / 0.6612 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.1424, allocations: 91.89 kB / 0.6613 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.514e-05/0.1424, allocations: 4 kB / 0.6613 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.508e-05/0.1424, allocations: 15.92 kB / 0.6613 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.1426, allocations: 67.84 kB / 0.6614 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1426, allocations: 0 / 0.6614 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.633e-06/0.1426, allocations: 0 / 0.6614 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.1426, allocations: 0 / 0.6614 GB, free: 8.504 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.0004202/0.143, allocations: 346.4 kB / 0.6617 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.1431, allocations: 16.02 kB / 0.6617 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.982e-05/0.1431, allocations: 30.75 kB / 0.6618 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.837e-05/0.1431, allocations: 8.844 kB / 0.6618 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.1433, allocations: 164.3 kB / 0.6619 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.1433, allocations: 8.375 kB / 0.6619 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.1433, allocations: 4.375 kB / 0.6619 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.1434, allocations: 57.8 kB / 0.662 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.1434, allocations: 7.938 kB / 0.662 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.467e-06/0.1435, allocations: 0 / 0.662 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.1435, allocations: 4 kB / 0.662 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.928e-05/0.1435, allocations: 19.98 kB / 0.662 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001639/0.1437, allocations: 161.7 kB / 0.6622 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.1438, allocations: 66.56 kB / 0.6622 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.123e-05/0.1439, allocations: 25.02 kB / 0.6623 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004538/0.1443, allocations: 0.5622 MB / 0.6628 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.1444, allocations: 34.5 kB / 0.6628 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.1444, allocations: 0 / 0.6628 GB, free: 6.711 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.01956/0.1639, allocations: 4.303 MB / 0.667 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.164, allocations: 51.41 kB / 0.6671 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.802e-05/0.1641, allocations: 93.86 kB / 0.6672 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.001e-05/0.1642, allocations: 29.83 kB / 0.6672 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.419e-05/0.1642, allocations: 84.14 kB / 0.6673 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.1644, allocations: 59.19 kB / 0.6674 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002383/0.1646, allocations: 85.67 kB / 0.6674 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1647, allocations: 330.7 kB / 0.6677 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000507/0.1653, allocations: 303.9 kB / 0.668 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005007/0.1658, allocations: 315.7 kB / 0.6683 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.1673, allocations: 0.7563 MB / 0.6691 GB, free: 144 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1673, allocations: 4 kB / 0.6691 GB, free: 140 kB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001512/0.1689, allocations: 0.7846 MB / 0.6698 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.1689, allocations: 8 kB / 0.6699 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.1689, allocations: 0 / 0.6699 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1689, allocations: 0 / 0.6699 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007886/0.1697, allocations: 95.88 kB / 0.6699 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.1697, allocations: 0.9375 kB / 0.6699 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/0.1702, allocations: 12 kB / 0.67 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.77e-05/0.1703, allocations: 31.98 kB / 0.67 GB, free: 15.2 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.0002046/0.1705, allocations: 126.6 kB / 0.6701 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.785e-05/0.1706, allocations: 7.906 kB / 0.6701 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002973/0.1736, allocations: 1.388 MB / 0.6715 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.1736, allocations: 7.984 kB / 0.6715 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.1736, allocations: 4 kB / 0.6715 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.1736, allocations: 4 kB / 0.6715 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.1766, allocations: 1.802 MB / 0.6732 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.1766, allocations: 0 / 0.6732 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007686/0.1774, allocations: 107.9 kB / 0.6734 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.1774, allocations: 3.938 kB / 0.6734 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-05/0.1775, allocations: 31.94 kB / 0.6734 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.515e-06/0.1775, allocations: 4 kB / 0.6734 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1775, allocations: 0 / 0.6734 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002399/0.1799, allocations: 1.459 MB / 0.6748 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.765e-05/0.18, allocations: 92.89 kB / 0.6749 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.391e-05/0.1801, allocations: 15.94 kB / 0.6749 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004686/0.1805, allocations: 8 kB / 0.6749 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.1807, allocations: 47.95 kB / 0.675 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.426e-05/0.1808, allocations: 24 kB / 0.675 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.231e-05/0.1808, allocations: 83.34 kB / 0.6751 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1808, allocations: 0 / 0.6751 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005612/0.1814, allocations: 172 kB / 0.6752 GB, free: 9.707 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.002967/0.1843, allocations: 2.119 MB / 0.6773 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001204/0.1856, allocations: 0.7229 MB / 0.678 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.1856, allocations: 0 / 0.678 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006354/0.1862, allocations: 459.6 kB / 0.6785 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.1866, allocations: 16.88 kB / 0.6785 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00707/0.1937, allocations: 3.714 MB / 0.6821 GB, free: 2.578 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.1939, allocations: 0.7182 MB / 0.6828 GB, free: 1.836 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000974/0.1949, allocations: 301.5 kB / 0.6831 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005514/0.1955, allocations: 111.4 kB / 0.6832 GB, free: 1.434 MB / 0.5137 GB Notification: Performance of SimCode: time 6.41e-07/0.1955, allocations: 4 kB / 0.6832 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.2283, allocations: 12.97 MB / 0.6959 GB, free: 4.625 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.814/8.043, allocations: 7.172 kB / 0.6959 GB, free: 4.621 MB / 0.5294 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)