Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_latest_AixLib.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/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/package.mo", uses=false) Using package AixLib with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.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: translateModel(AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AixLib_latest_AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AixLib_latest_AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 109.1 kB / 16.41 MB, free: 6.465 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.001174/0.001174, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.406/1.406, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05876/0.05876, allocations: 12.04 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0005365/0.0005364, allocations: 31.94 kB / 356.3 MB, free: 13.95 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6228:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:6853:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:8435:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:9369:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:11505:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/Obsolete/YearIndependent/FastHVAC/Components/HeatExchangers/RadiatorMultiLayer.mo:265:34-265:12875:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/ThermalZones/HighOrder/Components/Examples/DryAir/DryAir_test.mo:71:18-71:405:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:2066:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/ThermalZones/HighOrder/Components/DryAir/InfiltrationRate_DIN12831.mo:20:192-20:4252:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_RoofN_Roof_S.mo:5:35-5:362:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_N_E_S_W_Hor.mo:5:35-5:320:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/Weather/SurfaceOrientation/SurfaceOrientationData_NE_SE_SW_NW_Hor.mo:5:35-5:324:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:588:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/CHP/CHPDataSimple/CHP_XRGI_9kWel.mo:25:34-25:3852:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/DataBase/CHP/CHPDataSimple/CHP_Cleanergy_C9G.mo:36:34-36:594:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/BoundaryConditions/InternalGains/Examples/InternalGains/Machines.mo:31:20-31:400:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/BoundaryConditions/InternalGains/Examples/InternalGains/Lights.mo:27:20-27:398:writable] Warning: Lexer treating \ as \\, since \ is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 1.4.0-development/package.mo): time 1.943/1.943, allocations: 272.3 MB / 0.6657 GB, free: 18.35 MB / 478.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 119.8 kB / 0.8936 GB, free: 15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6057/0.6079, allocations: 109.1 MB / 1 GB, free: 8.148 MB / 0.6857 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001601/0.6095, allocations: 0.6225 MB / 1.001 GB, free: 7.684 MB / 0.6857 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.6108, allocations: 1.268 MB / 1.002 GB, free: 6.66 MB / 0.6857 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.477e-05/0.6109, allocations: 0 / 1.002 GB, free: 6.66 MB / 0.6857 GB Notification: Performance of NFTyping.typeComponents: time 1.299e-05/0.6109, allocations: 5.125 kB / 1.002 GB, free: 6.656 MB / 0.6857 GB Notification: Performance of NFTyping.typeBindings: time 2.65e-05/0.6109, allocations: 3.938 kB / 1.002 GB, free: 6.652 MB / 0.6857 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.6113, allocations: 72.41 kB / 1.002 GB, free: 6.605 MB / 0.6857 GB Notification: Performance of NFFlatten.flatten: time 5.888e-05/0.6114, allocations: 22.33 kB / 1.002 GB, free: 6.594 MB / 0.6857 GB Notification: Performance of NFFlatten.resolveConnections: time 4.168e-05/0.6114, allocations: 6.375 kB / 1.002 GB, free: 6.59 MB / 0.6857 GB Notification: Performance of NFEvalConstants.evaluate: time 2.191e-05/0.6114, allocations: 5.906 kB / 1.002 GB, free: 6.59 MB / 0.6857 GB Notification: Performance of NFSimplifyModel.simplify: time 6.631e-05/0.6115, allocations: 19.5 kB / 1.002 GB, free: 6.574 MB / 0.6857 GB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.6115, allocations: 2.281 kB / 1.002 GB, free: 6.574 MB / 0.6857 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.6117, allocations: 94.39 kB / 1.002 GB, free: 6.527 MB / 0.6857 GB Notification: Performance of NFScalarize.scalarize: time 1.57e-05/0.6117, allocations: 14.3 kB / 1.002 GB, free: 6.516 MB / 0.6857 GB Notification: Performance of NFVerifyModel.verify: time 2.417e-05/0.6118, allocations: 6.312 kB / 1.002 GB, free: 6.512 MB / 0.6857 GB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.6119, allocations: 62.73 kB / 1.002 GB, free: 6.477 MB / 0.6857 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.6119, allocations: 0 / 1.002 GB, free: 6.477 MB / 0.6857 GB Notification: Performance of FrontEnd: time 1.282e-06/0.6119, allocations: 0 / 1.002 GB, free: 6.477 MB / 0.6857 GB Notification: Performance of Transformations before backend: time 6.191e-06/0.6119, allocations: 0 / 1.002 GB, free: 6.477 MB / 0.6857 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.0003973/0.6124, allocations: 356.1 kB / 1.003 GB, free: 6.102 MB / 0.6857 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.6124, allocations: 7.969 kB / 1.003 GB, free: 6.102 MB / 0.6857 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.918e-05/0.6124, allocations: 7.25 kB / 1.003 GB, free: 6.098 MB / 0.6857 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.67e-05/0.6125, allocations: 173.5 kB / 1.003 GB, free: 5.891 MB / 0.6857 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.6125, allocations: 2.688 kB / 1.003 GB, free: 5.891 MB / 0.6857 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.6126, allocations: 6.75 kB / 1.003 GB, free: 5.887 MB / 0.6857 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.6127, allocations: 57.75 kB / 1.003 GB, free: 5.836 MB / 0.6857 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.6127, allocations: 1.094 kB / 1.003 GB, free: 5.836 MB / 0.6857 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.6127, allocations: 4 kB / 1.003 GB, free: 5.832 MB / 0.6857 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.6127, allocations: 1.125 kB / 1.003 GB, free: 5.832 MB / 0.6857 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.424e-05/0.6128, allocations: 25.59 kB / 1.003 GB, free: 5.82 MB / 0.6857 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.613, allocations: 169.7 kB / 1.003 GB, free: 5.613 MB / 0.6857 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.6131, allocations: 60.22 kB / 1.003 GB, free: 5.57 MB / 0.6857 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.84e-05/0.6131, allocations: 24.03 kB / 1.003 GB, free: 5.555 MB / 0.6857 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003415/0.6135, allocations: 0.5566 MB / 1.004 GB, free: 4.887 MB / 0.6857 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.6135, allocations: 39.75 kB / 1.004 GB, free: 4.84 MB / 0.6857 GB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.6135, allocations: 0 / 1.004 GB, free: 4.84 MB / 0.6857 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.01871/0.6322, allocations: 4.299 MB / 1.008 GB, free: 2.414 MB / 0.6857 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.6323, allocations: 58.11 kB / 1.008 GB, free: 2.348 MB / 0.6857 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.388e-05/0.6323, allocations: 102.8 kB / 1.008 GB, free: 2.238 MB / 0.6857 GB Notification: Performance of collectPreVariables (initialization): time 7.081e-05/0.6324, allocations: 27.2 kB / 1.008 GB, free: 2.207 MB / 0.6857 GB Notification: Performance of collectInitialEqns (initialization): time 1.39e-05/0.6324, allocations: 80.14 kB / 1.008 GB, free: 2.125 MB / 0.6857 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.6325, allocations: 57.75 kB / 1.008 GB, free: 2.074 MB / 0.6857 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.6327, allocations: 95.83 kB / 1.008 GB, free: 2.031 MB / 0.6857 GB Notification: Performance of setup shared object (initialization): time 4.582e-05/0.6328, allocations: 321.5 kB / 1.009 GB, free: 1.711 MB / 0.6857 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004785/0.6333, allocations: 309.7 kB / 1.009 GB, free: 1.551 MB / 0.6857 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004839/0.6338, allocations: 311.5 kB / 1.009 GB, free: 1.391 MB / 0.6857 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.6352, allocations: 0.7596 MB / 1.01 GB, free: 1.012 MB / 0.6857 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.6352, allocations: 0 / 1.01 GB, free: 1.012 MB / 0.6857 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001401/0.6366, allocations: 0.7908 MB / 1.011 GB, free: 0.6172 MB / 0.6857 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.6366, allocations: 4.688 kB / 1.011 GB, free: 0.6172 MB / 0.6857 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.6366, allocations: 0 / 1.011 GB, free: 0.6172 MB / 0.6857 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.6366, allocations: 1.281 kB / 1.011 GB, free: 0.6172 MB / 0.6857 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008479/0.6375, allocations: 96.58 kB / 1.011 GB, free: 0.5977 MB / 0.6857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.6375, allocations: 0 / 1.011 GB, free: 0.5977 MB / 0.6857 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005453/0.6381, allocations: 6 kB / 1.011 GB, free: 0.5977 MB / 0.6857 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.134e-05/0.6382, allocations: 39.12 kB / 1.011 GB, free: 0.5859 MB / 0.6857 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.0001701/0.6383, allocations: 122.4 kB / 1.011 GB, free: 472 kB / 0.6857 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.6384, allocations: 3.531 kB / 1.011 GB, free: 472 kB / 0.6857 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002997/0.6414, allocations: 1.387 MB / 1.012 GB, free: 15.63 MB / 0.7013 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.6414, allocations: 3.984 kB / 1.012 GB, free: 15.63 MB / 0.7013 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.6415, allocations: 0 / 1.012 GB, free: 15.63 MB / 0.7013 GB Notification: Performance of postOpt removeConstants (simulation): time 4.622e-05/0.6415, allocations: 94.45 kB / 1.012 GB, free: 15.52 MB / 0.7013 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.838e-05/0.6416, allocations: 9.375 kB / 1.012 GB, free: 15.52 MB / 0.7013 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005129/0.6421, allocations: 14.34 kB / 1.013 GB, free: 15.51 MB / 0.7013 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.6423, allocations: 45.17 kB / 1.013 GB, free: 15.49 MB / 0.7013 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001742/0.644, allocations: 0.98 MB / 1.014 GB, free: 14.95 MB / 0.7013 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002463/0.6465, allocations: 1.545 MB / 1.015 GB, free: 14.03 MB / 0.7013 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006293/0.6472, allocations: 430.6 kB / 1.015 GB, free: 13.79 MB / 0.7013 GB Notification: Performance of sorting global known variables: time 4.052e-05/0.6472, allocations: 76.47 kB / 1.015 GB, free: 13.71 MB / 0.7013 GB Notification: Performance of Backend: time 6.21e-07/0.6472, allocations: 3.938 kB / 1.015 GB, free: 13.71 MB / 0.7013 GB Notification: Performance of simCode: created initialization part: time 0.001471/0.6487, allocations: 0.5585 MB / 1.016 GB, free: 13.41 MB / 0.7013 GB Notification: Performance of SimCode: time 0.0008537/0.6495, allocations: 0.7163 MB / 1.017 GB, free: 12.75 MB / 0.7013 GB Notification: Performance of Templates: time 0.01769/0.6672, allocations: 11.46 MB / 1.028 GB, free: 3.504 MB / 0.7013 GB make -j1 -f AixLib_latest_AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f AixLib_latest_AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo AixLib_latest_AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < AixLib_latest_AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/AixLib_latest_AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./AixLib_latest_AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > AixLib_latest_AixLib.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)