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.001798/0.001798, allocations: 107.1 kB / 16.4 MB, free: 6.516 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.001779/0.00178, allocations: 189.3 kB / 17.34 MB, free: 5.738 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.459/1.459, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.749/0.749, allocations: 122.9 MB / 414.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 69.33 kB / 0.568 GB, free: 29.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1605, allocations: 77.93 MB / 0.6441 GB, free: 9.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001969/0.1625, allocations: 0.5982 MB / 0.6447 GB, free: 8.879 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.1644, allocations: 1.291 MB / 0.646 GB, free: 7.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.84e-05/0.1645, allocations: 0 / 0.646 GB, free: 7.57 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.849e-05/0.1646, allocations: 0 / 0.646 GB, free: 7.57 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.18e-05/0.1646, allocations: 0 / 0.646 GB, free: 7.57 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005599/0.1652, allocations: 79.67 kB / 0.646 GB, free: 7.492 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.76e-05/0.1652, allocations: 23.86 kB / 0.6461 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.819e-05/0.1653, allocations: 7.984 kB / 0.6461 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.676e-05/0.1653, allocations: 7.984 kB / 0.6461 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.579e-05/0.1654, allocations: 15.92 kB / 0.6461 GB, free: 7.438 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.421e-05/0.1654, allocations: 4 kB / 0.6461 GB, free: 7.434 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002555/0.1657, allocations: 103.9 kB / 0.6462 GB, free: 7.332 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.73e-05/0.1657, allocations: 3.984 kB / 0.6462 GB, free: 7.328 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.468e-05/0.1658, allocations: 11.94 kB / 0.6462 GB, free: 7.316 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.1659, allocations: 68.06 kB / 0.6463 GB, free: 7.25 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1659, allocations: 0 / 0.6463 GB, free: 7.25 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1659, allocations: 0 / 0.6463 GB, free: 7.25 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1659, allocations: 3.984 kB / 0.6463 GB, free: 7.246 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.000456/0.1664, allocations: 351.3 kB / 0.6466 GB, free: 6.855 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1665, allocations: 16.62 kB / 0.6466 GB, free: 6.84 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.303e-05/0.1665, allocations: 34.73 kB / 0.6467 GB, free: 6.797 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.1665, allocations: 0.9375 kB / 0.6467 GB, free: 6.797 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.1667, allocations: 172.3 kB / 0.6468 GB, free: 6.59 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.1667, allocations: 4.375 kB / 0.6468 GB, free: 6.586 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.293e-05/0.1667, allocations: 4.375 kB / 0.6468 GB, free: 6.582 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.1668, allocations: 57.8 kB / 0.6469 GB, free: 6.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1669, allocations: 3.938 kB / 0.6469 GB, free: 6.516 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.1669, allocations: 0 / 0.6469 GB, free: 6.516 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.1669, allocations: 0 / 0.6469 GB, free: 6.516 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.255e-05/0.167, allocations: 27.98 kB / 0.6469 GB, free: 6.488 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000211/0.1672, allocations: 165.6 kB / 0.6471 GB, free: 6.277 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.1673, allocations: 58.5 kB / 0.6471 GB, free: 6.211 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.972e-05/0.1674, allocations: 32.83 kB / 0.6472 GB, free: 6.176 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005576/0.168, allocations: 0.5622 MB / 0.6477 GB, free: 5.484 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.168, allocations: 34.73 kB / 0.6477 GB, free: 5.441 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.168, allocations: 0 / 0.6477 GB, free: 5.441 MB / 494.1 MB 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.02025/0.1883, allocations: 4.385 MB / 0.652 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.1883, allocations: 51.41 kB / 0.6521 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.862e-05/0.1884, allocations: 93.86 kB / 0.6522 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.063e-05/0.1885, allocations: 29.7 kB / 0.6522 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.464e-05/0.1885, allocations: 80.14 kB / 0.6523 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.1886, allocations: 55.55 kB / 0.6523 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.1889, allocations: 89.66 kB / 0.6524 GB, free: 480 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.189, allocations: 326.8 kB / 0.6527 GB, free: 144 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005476/0.1896, allocations: 311.8 kB / 0.653 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.1901, allocations: 311.9 kB / 0.6533 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.1917, allocations: 0.7758 MB / 0.6541 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1917, allocations: 0 / 0.6541 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001567/0.1933, allocations: 0.7982 MB / 0.6549 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1933, allocations: 5.719 kB / 0.6549 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1933, allocations: 320 / 0.6549 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.1933, allocations: 0 / 0.6549 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008794/0.1942, allocations: 91.89 kB / 0.6549 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1942, allocations: 4 kB / 0.6549 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005435/0.1948, allocations: 12 kB / 0.655 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-05/0.1949, allocations: 39.95 kB / 0.655 GB, free: 13.8 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.0002088/0.1951, allocations: 121.8 kB / 0.6551 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.998e-05/0.1952, allocations: 7.953 kB / 0.6551 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003026/0.1982, allocations: 1.399 MB / 0.6565 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1982, allocations: 4 kB / 0.6565 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1982, allocations: 0 / 0.6565 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.1983, allocations: 3.984 kB / 0.6565 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002993/0.2013, allocations: 1.81 MB / 0.6583 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2013, allocations: 0 / 0.6583 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008343/0.2021, allocations: 107.9 kB / 0.6584 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/0.2022, allocations: 8.031 kB / 0.6584 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.507e-05/0.2023, allocations: 31.92 kB / 0.6584 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.2023, allocations: 4 kB / 0.6584 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2023, allocations: 0 / 0.6584 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002357/0.2046, allocations: 1.463 MB / 0.6598 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.644e-05/0.2047, allocations: 92.98 kB / 0.6599 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.878e-05/0.2048, allocations: 19.94 kB / 0.6599 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005285/0.2053, allocations: 16 kB / 0.66 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.2055, allocations: 43.97 kB / 0.66 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-05/0.2056, allocations: 31.98 kB / 0.66 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.448e-05/0.2056, allocations: 75.28 kB / 0.6601 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2056, allocations: 0 / 0.6601 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006021/0.2062, allocations: 179.7 kB / 0.6603 GB, free: 8.281 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.003035/0.2093, allocations: 2.131 MB / 0.6624 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001248/0.2105, allocations: 0.7264 MB / 0.6631 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.2105, allocations: 3.938 kB / 0.6631 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006442/0.2112, allocations: 455.7 kB / 0.6635 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.2115, allocations: 17.69 kB / 0.6635 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008267/0.2198, allocations: 3.729 MB / 0.6672 GB, free: 1.117 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.2201, allocations: 0.7103 MB / 0.6679 GB, free: 388 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001023/0.2212, allocations: 293.5 kB / 0.6681 GB, free: 96 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005932/0.2218, allocations: 119.4 kB / 0.6682 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of SimCode: time 6.11e-07/0.2218, allocations: 0 / 0.6682 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03182/0.2536, allocations: 12.69 MB / 0.6806 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.683/7.936, allocations: 27.16 kB / 0.6807 GB, free: 3.43 MB / 0.5137 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)