Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.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/VehicleInterfaces 2.0.1-master/package.mo", uses=false) Using package VehicleInterfaces with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.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(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads") translateModel(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008857/0.0008857, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.006535/0.006536, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.371/1.371, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1881/0.1881, allocations: 7.985 MB / 299.4 MB, free: 3.293 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003168, allocations: 8 kB / 362.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1058, allocations: 52.21 MB / 414.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads): time 0.008686/0.1145, allocations: 8.599 MB / 423.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2255/0.3401, allocations: 2.468 MB / 425.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.3414, allocations: 34.2 kB / 425.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008154/0.3423, allocations: 222.2 kB / 425.9 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001673/0.3439, allocations: 0.6663 MB / 426.6 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002852/0.3442, allocations: 84.42 kB / 426.7 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002154/0.3464, allocations: 2.192 MB / 428.8 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000623/0.3471, allocations: 385.5 kB / 429.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007686/0.3478, allocations: 444.3 kB / 429.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001072/0.3489, allocations: 0.7753 MB / 430.4 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002026/0.3491, allocations: 52.47 kB / 430.5 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008335/0.35, allocations: 389.1 kB / 430.9 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006037/0.3506, allocations: 0.7172 MB / 431.6 MB, free: 33.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008221/0.3514, allocations: 0.8885 MB / 432.5 MB, free: 33.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002581/0.354, allocations: 2.58 MB / 435 MB, free: 32.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.354, allocations: 0 / 435 MB, free: 32.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3541, allocations: 4.844 kB / 435.1 MB, free: 32.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.996e-05/0.3541, allocations: 0 / 435.1 MB, free: 32.7 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 763 * Number of variables: 763 Notification: Performance of Generate backend data structure: time 0.003233/0.3574, allocations: 1.771 MB / 436.8 MB, free: 31.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3574, allocations: 9.844 kB / 436.8 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00479/0.3622, allocations: 1.532 MB / 438.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.3639, allocations: 0.8444 MB / 439.2 MB, free: 31.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.861e-05/0.364, allocations: 90.64 kB / 439.3 MB, free: 31.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007961/0.3648, allocations: 257.3 kB / 439.5 MB, free: 31.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006333/0.3712, allocations: 5.036 MB / 444.6 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.043e-05/0.3713, allocations: 27.56 kB / 444.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002096/0.3715, allocations: 67.5 kB / 444.7 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00168/0.3732, allocations: 1.152 MB / 445.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006832/0.38, allocations: 4.301 MB / 450.1 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02/0.4, allocations: 20.67 MB / 470.8 MB, free: 28.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00185/0.4019, allocations: 1.334 MB / 472.1 MB, free: 27.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005993/0.4026, allocations: 442.8 kB / 472.6 MB, free: 27.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.4026, allocations: 9.25 kB / 472.6 MB, free: 27.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.4026, allocations: 48.31 kB / 472.6 MB, free: 27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 4.439e-06/0.4026, allocations: 1.438 kB / 472.6 MB, free: 27 MB / 366.1 MB Notification: Performance of matching and sorting (n=114): time 0.007767/0.4104, allocations: 3.934 MB / 476.6 MB, free: 25.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.097e-05/0.4105, allocations: 135.7 kB / 476.7 MB, free: 24.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004491/0.415, allocations: 2.405 MB / 479.1 MB, free: 24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001793/0.4153, allocations: 36.86 kB / 479.1 MB, free: 23.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.4165, allocations: 1.758 MB / 480.9 MB, free: 22.58 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005127/0.417, allocations: 459.6 kB / 481.3 MB, free: 22.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005348/0.4176, allocations: 349.4 kB / 481.7 MB, free: 22.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.4178, allocations: 354.2 kB / 482 MB, free: 21.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00219/0.42, allocations: 1.275 MB / 483.3 MB, free: 21.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003823/0.4238, allocations: 3.908 MB / 487.2 MB, free: 17.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006592/0.4304, allocations: 5.658 MB / 492.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001421/0.4306, allocations: 26.59 kB / 492.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.01048/0.4411, allocations: 4.97 MB / 497.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.727e-05/0.4412, allocations: 45.88 kB / 497.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001186/0.4424, allocations: 0.7784 MB / 498.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001663/0.4426, allocations: 120 kB / 498.8 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003184/0.4458, allocations: 0.9424 MB / 499.7 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000178/0.446, allocations: 179.4 kB / 499.9 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003286/0.4493, allocations: 218 kB / 0.4884 GB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000567/0.4499, allocations: 255 kB / 0.4887 GB, free: 8.219 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 12 (world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (509): * Single equations (assignments): 503 * Array equations: 6 * 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.002265/0.4522, allocations: 1.204 MB / 0.4898 GB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005423/0.4527, allocations: 197.3 kB / 0.49 GB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006395/0.4534, allocations: 264.3 kB / 0.4903 GB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001101/0.4545, allocations: 0.7165 MB / 0.491 GB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-05/0.4545, allocations: 0 / 0.491 GB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.322e-05/0.4545, allocations: 8.312 kB / 0.491 GB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005966/0.4605, allocations: 3.207 MB / 0.4941 GB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/0.4606, allocations: 12.94 kB / 0.4941 GB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005219/0.4611, allocations: 155.7 kB / 0.4943 GB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.717e-05/0.4611, allocations: 12 kB / 0.4943 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.836e-05/0.4612, allocations: 34.47 kB / 0.4943 GB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.778e-05/0.4612, allocations: 19.92 kB / 0.4943 GB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.849e-06/0.4612, allocations: 15.94 kB / 0.4943 GB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.4631, allocations: 1.715 MB / 0.496 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005615/0.4637, allocations: 278.3 kB / 0.4963 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.4639, allocations: 25.81 kB / 0.4963 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006893/0.4646, allocations: 49.36 kB / 0.4964 GB, free: 460 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.4648, allocations: 79.67 kB / 0.4964 GB, free: 380 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.158e-05/0.4648, allocations: 45.48 kB / 0.4965 GB, free: 336 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002235/0.4671, allocations: 1.482 MB / 0.4979 GB, free: 14.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4671, allocations: 0 / 0.4979 GB, free: 14.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00389/0.471, allocations: 0.509 MB / 0.4984 GB, free: 14.32 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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 simulation (84): * Single equations (assignments): 78 * Array equations: 6 * 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.0004646/0.4715, allocations: 207.1 kB / 0.4986 GB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004818/0.4763, allocations: 2.785 MB / 0.5013 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/0.4763, allocations: 4.688 kB / 0.5013 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007468/0.4771, allocations: 0.5372 MB / 0.5019 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004168/0.4813, allocations: 206.6 kB / 0.5021 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008715/0.49, allocations: 5.6 MB / 0.5075 GB, free: 4.855 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001922/0.492, allocations: 1.918 MB / 0.5094 GB, free: 2.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003293/0.4953, allocations: 1.411 MB / 0.5108 GB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003866/0.4957, allocations: 147.4 kB / 0.5109 GB, free: 1.348 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4957, allocations: 0 / 0.5109 GB, free: 1.348 MB / 382.1 MB Notification: Performance of Templates: time 0.03269/0.5284, allocations: 15.44 MB / 0.526 GB, free: 2.012 MB / 398.1 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.makefile (rm -f VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.sim & ./VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.pipe 2>&1)