Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.007008/0.007008, allocations: 99.64 kB / 15.73 MB, free: 6.016 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.001665/0.001665, allocations: 193 kB / 16.67 MB, free: 5.934 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00248/0.00248, allocations: 292.8 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.03/1.03, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002751/0.002752, allocations: 99.84 kB / 0.681 GB, free: 7.406 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4415/0.4442, allocations: 86.98 MB / 0.766 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001723/0.446, allocations: 0.6094 MB / 0.7666 GB, free: 3.215 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001697/0.4477, allocations: 1.279 MB / 0.7678 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.462e-05/0.4477, allocations: 0 / 0.7678 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.508e-05/0.4478, allocations: 3.938 kB / 0.7678 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.135e-05/0.4478, allocations: 4 kB / 0.7678 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003659/0.4482, allocations: 71.73 kB / 0.7679 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.69e-05/0.4482, allocations: 27.92 kB / 0.7679 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.88e-05/0.4483, allocations: 0 / 0.7679 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.714e-05/0.4483, allocations: 15.97 kB / 0.7679 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.49e-05/0.4484, allocations: 19.86 kB / 0.7679 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.4484, allocations: 0 / 0.7679 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002185/0.4486, allocations: 99.89 kB / 0.768 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.805e-05/0.4487, allocations: 19.92 kB / 0.7681 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.335e-05/0.4487, allocations: 11.94 kB / 0.7681 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.4488, allocations: 67.16 kB / 0.7681 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.4489, allocations: 4 kB / 0.7681 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.382e-06/0.4489, allocations: 0 / 0.7681 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.4489, allocations: 0 / 0.7681 GB, free: 1.586 MB / 0.5294 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.0004645/0.4493, allocations: 349 kB / 0.7685 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.4494, allocations: 8.031 kB / 0.7685 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.949e-05/0.4494, allocations: 38.73 kB / 0.7685 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.596e-05/0.4495, allocations: 8.938 kB / 0.7685 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.4496, allocations: 164.3 kB / 0.7687 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.4496, allocations: 4.375 kB / 0.7687 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.4496, allocations: 8.312 kB / 0.7687 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.4498, allocations: 61.78 kB / 0.7687 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.4498, allocations: 0 / 0.7687 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.4498, allocations: 8 kB / 0.7688 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.4498, allocations: 0 / 0.7688 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.375e-05/0.4499, allocations: 23.92 kB / 0.7688 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001967/0.4501, allocations: 169.6 kB / 0.7689 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.4502, allocations: 62.5 kB / 0.769 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.939e-05/0.4503, allocations: 28.83 kB / 0.769 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005532/0.4508, allocations: 0.5583 MB / 0.7696 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.4509, allocations: 42.5 kB / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.4509, allocations: 0 / 0.7696 GB, free: 15.77 MB / 0.545 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.02061/0.4715, allocations: 4.356 MB / 0.7739 GB, free: 11.27 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.4716, allocations: 55.39 kB / 0.7739 GB, free: 11.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.4717, allocations: 101.9 kB / 0.774 GB, free: 11.09 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.856e-05/0.4718, allocations: 25.7 kB / 0.774 GB, free: 11.06 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.756e-05/0.4718, allocations: 85.92 kB / 0.7741 GB, free: 10.97 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.472, allocations: 59.48 kB / 0.7742 GB, free: 10.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002586/0.4722, allocations: 89.67 kB / 0.7743 GB, free: 10.82 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4724, allocations: 326.8 kB / 0.7746 GB, free: 10.49 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005422/0.4729, allocations: 303.9 kB / 0.7749 GB, free: 10.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005375/0.4735, allocations: 322.4 kB / 0.7752 GB, free: 9.883 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.4751, allocations: 0.7779 MB / 0.7759 GB, free: 9.102 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.4751, allocations: 0 / 0.7759 GB, free: 9.102 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001612/0.4767, allocations: 0.8051 MB / 0.7767 GB, free: 8.293 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.4768, allocations: 4 kB / 0.7767 GB, free: 8.289 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.4768, allocations: 0 / 0.7767 GB, free: 8.289 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.4768, allocations: 0 / 0.7767 GB, free: 8.289 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008176/0.4776, allocations: 91.89 kB / 0.7768 GB, free: 8.199 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.4776, allocations: 4.547 kB / 0.7768 GB, free: 8.195 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004978/0.4781, allocations: 8 kB / 0.7768 GB, free: 8.188 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.611e-05/0.4782, allocations: 39.97 kB / 0.7769 GB, free: 8.148 MB / 0.545 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.0002244/0.4785, allocations: 120.2 kB / 0.777 GB, free: 8.023 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-05/0.4786, allocations: 7.953 kB / 0.777 GB, free: 8.016 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003221/0.4818, allocations: 1.4 MB / 0.7783 GB, free: 6.609 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.4818, allocations: 4 kB / 0.7784 GB, free: 6.605 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.4818, allocations: 0 / 0.7784 GB, free: 6.605 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.4818, allocations: 3.984 kB / 0.7784 GB, free: 6.602 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003117/0.4849, allocations: 1.812 MB / 0.7801 GB, free: 4.727 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.485, allocations: 0 / 0.7801 GB, free: 4.727 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007785/0.4858, allocations: 103.9 kB / 0.7802 GB, free: 4.625 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.343e-06/0.4858, allocations: 4 kB / 0.7802 GB, free: 4.621 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.286e-05/0.4858, allocations: 35.92 kB / 0.7803 GB, free: 4.586 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.4859, allocations: 8.031 kB / 0.7803 GB, free: 4.578 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4859, allocations: 0 / 0.7803 GB, free: 4.578 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002505/0.4884, allocations: 1.47 MB / 0.7817 GB, free: 3.086 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/0.4884, allocations: 92.98 kB / 0.7818 GB, free: 2.977 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.466e-05/0.4885, allocations: 15.94 kB / 0.7818 GB, free: 2.961 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005013/0.489, allocations: 12 kB / 0.7818 GB, free: 2.949 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.4892, allocations: 44.03 kB / 0.7819 GB, free: 2.906 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.384e-05/0.4893, allocations: 35.98 kB / 0.7819 GB, free: 2.871 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.082e-05/0.4894, allocations: 75.28 kB / 0.782 GB, free: 2.797 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4894, allocations: 0 / 0.782 GB, free: 2.797 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007874/0.4902, allocations: 179.7 kB / 0.7821 GB, free: 2.621 MB / 0.545 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.003557/0.4937, allocations: 2.135 MB / 0.7842 GB, free: 472 kB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.4951, allocations: 0.7223 MB / 0.7849 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4952, allocations: 3.938 kB / 0.7849 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007629/0.4959, allocations: 455.7 kB / 0.7854 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004099/0.4963, allocations: 16 kB / 0.7854 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008021/0.5044, allocations: 3.721 MB / 0.789 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.5048, allocations: 0.7182 MB / 0.7897 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001001/0.5058, allocations: 293.5 kB / 0.79 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005779/0.5064, allocations: 115.4 kB / 0.7901 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of SimCode: time 5.81e-07/0.5064, allocations: 0 / 0.7901 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04056/0.5469, allocations: 12.74 MB / 0.8026 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.957/10.5, allocations: 8.359 kB / 0.8026 GB, free: 13.8 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)