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.000694/0.0006939, allocations: 88.17 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007291/0.000729, allocations: 175.6 kB / 16.58 MB, free: 6.852 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.156/1.156, allocations: 223.3 MB / 240.6 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5872/0.5872, allocations: 113.7 MB / 405.4 MB, free: 4.598 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002692/0.0002692, allocations: 13 kB / 493.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1188, allocations: 77.11 MB / 0.5569 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0006028/0.1195, allocations: 331 kB / 0.5572 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.1208, allocations: 1.235 MB / 0.5584 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.63e-05/0.1208, allocations: 0 / 0.5584 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.017e-06/0.1208, allocations: 0 / 0.5584 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 1.95e-05/0.1209, allocations: 4 kB / 0.5584 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.1211, allocations: 59.81 kB / 0.5585 GB, free: 10.01 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.859e-05/0.1212, allocations: 15.98 kB / 0.5585 GB, free: 9.992 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.643e-05/0.1212, allocations: 4 kB / 0.5585 GB, free: 9.988 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.86e-05/0.1213, allocations: 8 kB / 0.5585 GB, free: 9.98 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.338e-05/0.1213, allocations: 15.91 kB / 0.5585 GB, free: 9.965 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.719e-06/0.1213, allocations: 0 / 0.5585 GB, free: 9.965 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.1215, allocations: 99.88 kB / 0.5586 GB, free: 9.867 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.312e-05/0.1216, allocations: 7.938 kB / 0.5586 GB, free: 9.859 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.198e-05/0.1216, allocations: 33.7 kB / 0.5587 GB, free: 9.82 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 8.315e-05/0.1217, allocations: 43.94 kB / 0.5587 GB, free: 9.777 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1217, allocations: 4 kB / 0.5587 GB, free: 9.773 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1217, allocations: 0 / 0.5587 GB, free: 9.773 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.876e-06/0.1217, allocations: 0 / 0.5587 GB, free: 9.773 MB / 430.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.0003403/0.122, allocations: 339.6 kB / 0.559 GB, free: 9.395 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.942e-05/0.1221, allocations: 8.031 kB / 0.5591 GB, free: 9.387 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.008e-05/0.1221, allocations: 38.56 kB / 0.5591 GB, free: 9.34 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.088e-05/0.1221, allocations: 3.906 kB / 0.5591 GB, free: 9.336 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.25e-05/0.1222, allocations: 163.1 kB / 0.5592 GB, free: 9.137 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.1222, allocations: 7.938 kB / 0.5593 GB, free: 9.129 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.1223, allocations: 8 kB / 0.5593 GB, free: 9.121 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.713e-05/0.1224, allocations: 53.61 kB / 0.5593 GB, free: 9.062 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1224, allocations: 8 kB / 0.5593 GB, free: 9.055 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.1224, allocations: 0 / 0.5593 GB, free: 9.055 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1224, allocations: 0 / 0.5593 GB, free: 9.055 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.274e-05/0.1225, allocations: 19.98 kB / 0.5593 GB, free: 9.035 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001359/0.1226, allocations: 165.7 kB / 0.5595 GB, free: 8.824 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.224e-05/0.1227, allocations: 66.5 kB / 0.5596 GB, free: 8.75 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.383e-05/0.1227, allocations: 25.02 kB / 0.5596 GB, free: 8.723 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003817/0.1231, allocations: 0.5661 MB / 0.5601 GB, free: 8.027 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.1232, allocations: 34.56 kB / 0.5602 GB, free: 7.984 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.1232, allocations: 0 / 0.5602 GB, free: 7.984 MB / 430.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.01549/0.1387, allocations: 4.27 MB / 0.5643 GB, free: 3.574 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.1387, allocations: 55.41 kB / 0.5644 GB, free: 3.508 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.228e-05/0.1388, allocations: 93.86 kB / 0.5645 GB, free: 3.406 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.166e-05/0.1389, allocations: 29.83 kB / 0.5645 GB, free: 3.371 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.284e-05/0.1389, allocations: 84.12 kB / 0.5646 GB, free: 3.285 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.139, allocations: 55.2 kB / 0.5646 GB, free: 3.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.826e-05/0.1391, allocations: 4 kB / 0.5646 GB, free: 3.227 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1392, allocations: 314.8 kB / 0.5649 GB, free: 2.91 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004673/0.1397, allocations: 315.8 kB / 0.5652 GB, free: 2.602 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004557/0.1402, allocations: 307.9 kB / 0.5655 GB, free: 2.301 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006853/0.1409, allocations: 394.4 kB / 0.5659 GB, free: 1.918 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1409, allocations: 3.953 kB / 0.5659 GB, free: 1.914 MB / 430.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001333/0.1422, allocations: 0.7981 MB / 0.5667 GB, free: 1.109 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.1422, allocations: 4 kB / 0.5667 GB, free: 1.105 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.1422, allocations: 7.984 kB / 0.5667 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.1423, allocations: 3.938 kB / 0.5667 GB, free: 1.094 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006311/0.1429, allocations: 95.94 kB / 0.5668 GB, free: 1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.1429, allocations: 0 / 0.5668 GB, free: 1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003664/0.1433, allocations: 12 kB / 0.5668 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.826e-05/0.1433, allocations: 27.98 kB / 0.5668 GB, free: 0.9609 MB / 430.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001496/0.1435, allocations: 121.8 kB / 0.567 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.695e-05/0.1436, allocations: 15.86 kB / 0.567 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003062/0.1466, allocations: 1.4 MB / 0.5683 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.1466, allocations: 4 kB / 0.5683 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.1467, allocations: 0 / 0.5683 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.1467, allocations: 3.938 kB / 0.5684 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002513/0.1492, allocations: 1.821 MB / 0.5701 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1492, allocations: 0 / 0.5701 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006323/0.1498, allocations: 111.9 kB / 0.5702 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1499, allocations: 0 / 0.5702 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.376e-05/0.1499, allocations: 32 kB / 0.5703 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.1499, allocations: 3.938 kB / 0.5703 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1499, allocations: 0 / 0.5703 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002092/0.152, allocations: 1.462 MB / 0.5717 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.377e-05/0.1521, allocations: 96.89 kB / 0.5718 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.893e-05/0.1522, allocations: 8 kB / 0.5718 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000378/0.1526, allocations: 12 kB / 0.5718 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.1527, allocations: 43.91 kB / 0.5719 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.505e-05/0.1527, allocations: 31.98 kB / 0.5719 GB, free: 11.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.38e-05/0.1528, allocations: 75.28 kB / 0.572 GB, free: 11.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1528, allocations: 4.156 kB / 0.572 GB, free: 11.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005107/0.1533, allocations: 179.9 kB / 0.5721 GB, free: 11.43 MB / 446.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002673/0.156, allocations: 2.126 MB / 0.5742 GB, free: 9.277 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.1571, allocations: 0.7246 MB / 0.5749 GB, free: 8.555 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1571, allocations: 4.062 kB / 0.5749 GB, free: 8.551 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005947/0.1577, allocations: 448.1 kB / 0.5753 GB, free: 8.113 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.158, allocations: 16 kB / 0.5754 GB, free: 8.098 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004654/0.1627, allocations: 2.153 MB / 0.5775 GB, free: 5.891 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.163, allocations: 0.7184 MB / 0.5782 GB, free: 5.148 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001357/0.1644, allocations: 293.6 kB / 0.5784 GB, free: 4.863 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005154/0.1649, allocations: 119.4 kB / 0.5786 GB, free: 4.75 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1649, allocations: 0 / 0.5786 GB, free: 4.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2346/0.3995, allocations: 11.66 MB / 0.5899 GB, free: 33.16 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000123/0.3997, allocations: 209.6 kB / 0.5901 GB, free: 32.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.545/1.945, allocations: 0 / 0.5901 GB, free: 32.93 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: