Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_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.001608/0.001608, allocations: 110.1 kB / 16.4 MB, free: 6.367 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.001545/0.001545, allocations: 200.2 kB / 17.34 MB, free: 5.84 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.502/1.502, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8414/0.8414, allocations: 126.7 MB / 417.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 66.28 kB / 0.5736 GB, free: 27.03 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1602/0.1621, allocations: 78.86 MB / 0.6506 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001778/0.164, allocations: 0.6039 MB / 0.6512 GB, free: 2.949 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.1659, allocations: 1.293 MB / 0.6524 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.916e-05/0.166, allocations: 0 / 0.6524 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.957e-05/0.1661, allocations: 3.938 kB / 0.6524 GB, free: 1.637 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.812e-05/0.1661, allocations: 4 kB / 0.6525 GB, free: 1.633 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.1666, allocations: 71.72 kB / 0.6525 GB, free: 1.562 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.721e-05/0.1667, allocations: 23.92 kB / 0.6525 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.556e-05/0.1668, allocations: 8 kB / 0.6526 GB, free: 1.531 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.812e-05/0.1668, allocations: 8 kB / 0.6526 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.171e-05/0.1669, allocations: 19.91 kB / 0.6526 GB, free: 1.504 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/0.1669, allocations: 0 / 0.6526 GB, free: 1.504 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002886/0.1672, allocations: 103.8 kB / 0.6527 GB, free: 1.402 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.989e-05/0.1672, allocations: 8 kB / 0.6527 GB, free: 1.395 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.56e-05/0.1673, allocations: 15.91 kB / 0.6527 GB, free: 1.379 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001819/0.1675, allocations: 68.08 kB / 0.6528 GB, free: 1.312 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1675, allocations: 0 / 0.6528 GB, free: 1.312 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1675, allocations: 0 / 0.6528 GB, free: 1.312 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.1675, allocations: 4 kB / 0.6528 GB, free: 1.309 MB / 494.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.0005836/0.1681, allocations: 351.3 kB / 0.6531 GB, free: 0.918 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.1682, allocations: 8.031 kB / 0.6531 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.028e-05/0.1682, allocations: 38.75 kB / 0.6531 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.1683, allocations: 0.9375 kB / 0.6531 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.1684, allocations: 168.3 kB / 0.6533 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.1685, allocations: 8.312 kB / 0.6533 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.352e-05/0.1685, allocations: 8.375 kB / 0.6533 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/0.1686, allocations: 49.81 kB / 0.6534 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.1687, allocations: 7.938 kB / 0.6534 GB, free: 0.582 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.1687, allocations: 4 kB / 0.6534 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1687, allocations: 0 / 0.6534 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.3e-05/0.1688, allocations: 23.97 kB / 0.6534 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002228/0.169, allocations: 169.6 kB / 0.6536 GB, free: 348 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.1692, allocations: 62.55 kB / 0.6536 GB, free: 276 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.143e-05/0.1692, allocations: 28.84 kB / 0.6537 GB, free: 244 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005915/0.1698, allocations: 0.5583 MB / 0.6542 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.1699, allocations: 42.42 kB / 0.6542 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.1699, allocations: 0 / 0.6542 GB, free: 15.5 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.02018/0.1901, allocations: 4.369 MB / 0.6585 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.1901, allocations: 55.41 kB / 0.6586 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.589e-05/0.1902, allocations: 97.84 kB / 0.6587 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.617e-05/0.1903, allocations: 29.7 kB / 0.6587 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.192e-05/0.1904, allocations: 84.08 kB / 0.6588 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.1905, allocations: 55.67 kB / 0.6588 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/0.1907, allocations: 93.67 kB / 0.6589 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1909, allocations: 322.8 kB / 0.6592 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005662/0.1915, allocations: 307.9 kB / 0.6595 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005378/0.192, allocations: 313.7 kB / 0.6598 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.1936, allocations: 0.7702 MB / 0.6606 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.1936, allocations: 0 / 0.6606 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001644/0.1953, allocations: 0.8038 MB / 0.6613 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1953, allocations: 4 kB / 0.6613 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.1953, allocations: 8 kB / 0.6614 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1953, allocations: 0 / 0.6614 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008356/0.1962, allocations: 91.94 kB / 0.6614 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.1962, allocations: 0 / 0.6614 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005261/0.1967, allocations: 8 kB / 0.6614 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.011e-05/0.1968, allocations: 35.97 kB / 0.6615 GB, free: 7.875 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.0001904/0.197, allocations: 121.7 kB / 0.6616 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.434e-05/0.1971, allocations: 4 kB / 0.6616 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003268/0.2004, allocations: 1.397 MB / 0.663 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.2004, allocations: 4 kB / 0.663 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2004, allocations: 4 kB / 0.663 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.2004, allocations: 7.984 kB / 0.663 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.2035, allocations: 1.81 MB / 0.6648 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.2036, allocations: 4 kB / 0.6648 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007956/0.2044, allocations: 103.9 kB / 0.6649 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.2044, allocations: 0 / 0.6649 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.424e-05/0.2045, allocations: 31.94 kB / 0.6649 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.2045, allocations: 3.984 kB / 0.6649 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2045, allocations: 0 / 0.6649 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.207, allocations: 1.462 MB / 0.6663 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.027e-05/0.2071, allocations: 96.98 kB / 0.6664 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.426e-05/0.2072, allocations: 11.92 kB / 0.6664 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005217/0.2077, allocations: 16 kB / 0.6664 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.2079, allocations: 35.97 kB / 0.6665 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.661e-05/0.208, allocations: 36 kB / 0.6665 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.208e-05/0.208, allocations: 79.22 kB / 0.6666 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.208, allocations: 160 / 0.6666 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005608/0.2086, allocations: 191.6 kB / 0.6668 GB, free: 2.355 MB / 0.4981 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.003245/0.2119, allocations: 2.138 MB / 0.6689 GB, free: 192 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001328/0.2132, allocations: 0.7224 MB / 0.6696 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.2132, allocations: 8 kB / 0.6696 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007189/0.2139, allocations: 456 kB / 0.67 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.2143, allocations: 12 kB / 0.67 GB, free: 15 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008193/0.2225, allocations: 3.724 MB / 0.6736 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.2229, allocations: 0.7142 MB / 0.6743 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001046/0.2239, allocations: 297.5 kB / 0.6746 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000577/0.2245, allocations: 119.4 kB / 0.6747 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of SimCode: time 1.112e-06/0.2245, allocations: 0 / 0.6747 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03937/0.2639, allocations: 12.69 MB / 0.6871 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.216/8.48, allocations: 19.25 kB / 0.6872 GB, free: 13.49 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)