Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_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.001272/0.001273, allocations: 101.4 kB / 15.7 MB, free: 28 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.001506/0.001506, allocations: 200.6 kB / 16.64 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.1 MB / 222.5 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.752/1.752, allocations: 292.3 MB / 0.549 GB, free: 12.74 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 70.84 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2291, allocations: 114.5 MB / 0.7836 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001709/0.2308, allocations: 0.6201 MB / 0.7843 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0015/0.2324, allocations: 1.315 MB / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.306e-05/0.2324, allocations: 0 / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.548e-05/0.2324, allocations: 0 / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.612e-05/0.2325, allocations: 0 / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.2329, allocations: 75.66 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.87e-05/0.2329, allocations: 19.98 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.848e-05/0.233, allocations: 8 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.181e-05/0.233, allocations: 11.94 kB / 0.7856 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.849e-05/0.2331, allocations: 23.89 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.042e-05/0.2331, allocations: 0 / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.2333, allocations: 91.86 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.909e-05/0.2333, allocations: 11.97 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.814e-05/0.2333, allocations: 7.938 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.2335, allocations: 63.86 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2335, allocations: 0 / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.484e-06/0.2335, allocations: 0 / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.104e-05/0.2335, allocations: 0 / 0.7858 GB, free: 10.97 MB / 0.6075 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.0004911/0.234, allocations: 359.7 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.2341, allocations: 12.03 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.988e-05/0.2341, allocations: 34.73 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.2342, allocations: 0.9375 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.2343, allocations: 168.4 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.2343, allocations: 384 / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.2343, allocations: 4.375 kB / 0.7864 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.2344, allocations: 65.73 kB / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2345, allocations: 0 / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.2345, allocations: 3.938 kB / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.2345, allocations: 0 / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.083e-05/0.2345, allocations: 23.98 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000177/0.2347, allocations: 173.5 kB / 0.7866 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.2349, allocations: 54.56 kB / 0.7867 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.806e-05/0.2349, allocations: 28.84 kB / 0.7867 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000478/0.2354, allocations: 0.5622 MB / 0.7873 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.2354, allocations: 34.5 kB / 0.7873 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.2354, allocations: 0 / 0.7873 GB, free: 9.168 MB / 0.6075 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.01857/0.254, allocations: 4.306 MB / 0.7915 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.2541, allocations: 55.41 kB / 0.7916 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.207e-05/0.2542, allocations: 89.86 kB / 0.7916 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.148e-05/0.2542, allocations: 33.7 kB / 0.7917 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.008e-05/0.2543, allocations: 80.14 kB / 0.7918 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.2544, allocations: 51.2 kB / 0.7918 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002437/0.2546, allocations: 97.78 kB / 0.7919 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001893/0.2548, allocations: 318.8 kB / 0.7922 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005258/0.2554, allocations: 315.8 kB / 0.7925 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005034/0.2559, allocations: 314.5 kB / 0.7928 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.2573, allocations: 0.7468 MB / 0.7935 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.2573, allocations: 3.984 kB / 0.7935 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001555/0.2589, allocations: 0.8008 MB / 0.7943 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.2589, allocations: 4 kB / 0.7943 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.2589, allocations: 4 kB / 0.7943 GB, free: 1.777 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.259, allocations: 4 kB / 0.7943 GB, free: 1.773 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008199/0.2598, allocations: 91.94 kB / 0.7944 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.2598, allocations: 0 / 0.7944 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004872/0.2603, allocations: 16 kB / 0.7944 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.015e-05/0.2604, allocations: 27.98 kB / 0.7945 GB, free: 1.641 MB / 0.6075 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.0002043/0.2606, allocations: 126.4 kB / 0.7946 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.398e-05/0.2607, allocations: 4 kB / 0.7946 GB, free: 1.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002941/0.2636, allocations: 1.392 MB / 0.7959 GB, free: 100 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.2637, allocations: 4 kB / 0.7959 GB, free: 96 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.2637, allocations: 0 / 0.7959 GB, free: 96 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2637, allocations: 7.938 kB / 0.796 GB, free: 88 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.2666, allocations: 1.807 MB / 0.7977 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.2666, allocations: 0 / 0.7977 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007755/0.2674, allocations: 111.9 kB / 0.7978 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.2674, allocations: 4 kB / 0.7978 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.506e-05/0.2675, allocations: 27.94 kB / 0.7979 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.702e-06/0.2675, allocations: 4 kB / 0.7979 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2675, allocations: 0 / 0.7979 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.2699, allocations: 1.458 MB / 0.7993 GB, free: 12.6 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.377e-05/0.27, allocations: 88.95 kB / 0.7994 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.675e-05/0.2701, allocations: 11.94 kB / 0.7994 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000477/0.2705, allocations: 12 kB / 0.7994 GB, free: 12.47 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.2707, allocations: 51.89 kB / 0.7994 GB, free: 12.42 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.164e-05/0.2708, allocations: 24 kB / 0.7995 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 3.589e-05/0.2708, allocations: 79.28 kB / 0.7995 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2708, allocations: 4 kB / 0.7995 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005702/0.2714, allocations: 172.1 kB / 0.7997 GB, free: 12.14 MB / 0.6231 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.004789/0.2762, allocations: 2.115 MB / 0.8018 GB, free: 10 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002003/0.2782, allocations: 0.7262 MB / 0.8025 GB, free: 9.273 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.2783, allocations: 0 / 0.8025 GB, free: 9.273 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.2793, allocations: 460 kB / 0.8029 GB, free: 8.824 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005116/0.2798, allocations: 23.92 kB / 0.8029 GB, free: 8.801 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/0.2914, allocations: 3.696 MB / 0.8066 GB, free: 5.023 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.2918, allocations: 0.7181 MB / 0.8073 GB, free: 4.281 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00163/0.2935, allocations: 293.5 kB / 0.8075 GB, free: 3.996 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008603/0.2943, allocations: 119.4 kB / 0.8076 GB, free: 3.879 MB / 0.6231 GB Notification: Performance of SimCode: time 1.382e-06/0.2944, allocations: 3.938 kB / 0.8077 GB, free: 3.875 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03423/0.3286, allocations: 12.65 MB / 0.82 GB, free: 7.422 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.28/7.609, allocations: 21.95 kB / 0.82 GB, free: 7.406 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)