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.0008176/0.0008177, allocations: 92.16 kB / 16.02 MB, free: 80 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.0009068/0.000907, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.402/1.402, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1672/0.1672, allocations: 7.98 MB / 300.1 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.0003729, allocations: 12 kB / 363 MB, free: 14.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1154, allocations: 52.2 MB / 415.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads): time 0.009888/0.1253, allocations: 8.603 MB / 423.8 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1919/0.3173, allocations: 2.467 MB / 426.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001184/0.3185, allocations: 31.81 kB / 426.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007915/0.3193, allocations: 220.1 kB / 426.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001715/0.3211, allocations: 0.6669 MB / 427.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.3213, allocations: 89.34 kB / 427.3 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001843/0.3232, allocations: 2.192 MB / 429.5 MB, free: 34.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004051/0.3236, allocations: 385.6 kB / 429.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004146/0.324, allocations: 443 kB / 430.3 MB, free: 33.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007353/0.3248, allocations: 0.7742 MB / 431.1 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.3249, allocations: 56.64 kB / 431.1 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000598/0.3255, allocations: 389.9 kB / 431.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004358/0.326, allocations: 0.7201 MB / 432.2 MB, free: 33.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004864/0.3265, allocations: 0.8877 MB / 433.1 MB, free: 33.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001357/0.3278, allocations: 2.06 MB / 435.2 MB, free: 33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.3278, allocations: 3.094 kB / 435.2 MB, free: 33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3278, allocations: 0 / 435.2 MB, free: 33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.857e-05/0.3279, allocations: 4 kB / 435.2 MB, free: 33 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.00227/0.3302, allocations: 1.769 MB / 437 MB, free: 31.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.3302, allocations: 8.969 kB / 437 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004548/0.3348, allocations: 1.528 MB / 438.5 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.3359, allocations: 0.8542 MB / 439.4 MB, free: 31.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.765e-05/0.3359, allocations: 82.14 kB / 439.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006577/0.3366, allocations: 263.4 kB / 439.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004957/0.3416, allocations: 5.037 MB / 444.7 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.634e-05/0.3417, allocations: 25.84 kB / 444.8 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001868/0.3418, allocations: 61.8 kB / 444.8 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001456/0.3433, allocations: 1.156 MB / 446 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005706/0.349, allocations: 4.293 MB / 450.3 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01564/0.3647, allocations: 20.68 MB / 470.9 MB, free: 28.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.3662, allocations: 1.333 MB / 472.3 MB, free: 27.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005092/0.3667, allocations: 443.6 kB / 472.7 MB, free: 27.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.3668, allocations: 6.344 kB / 472.7 MB, free: 27.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.3668, allocations: 48.19 kB / 472.8 MB, free: 27.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.316e-06/0.3668, allocations: 0 / 472.8 MB, free: 27.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=114): time 0.005553/0.3724, allocations: 3.936 MB / 476.7 MB, free: 25.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.458e-05/0.3725, allocations: 135.7 kB / 476.8 MB, free: 25.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003171/0.3757, allocations: 2.404 MB / 479.2 MB, free: 24.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.402e-05/0.3757, allocations: 39.98 kB / 479.3 MB, free: 24.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009544/0.3767, allocations: 1.758 MB / 481 MB, free: 22.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.3771, allocations: 457.1 kB / 481.5 MB, free: 22.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004376/0.3775, allocations: 345.9 kB / 481.8 MB, free: 22.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.3777, allocations: 358.6 kB / 482.2 MB, free: 22.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/0.3795, allocations: 1.274 MB / 483.4 MB, free: 21.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002905/0.3825, allocations: 3.909 MB / 487.3 MB, free: 17.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0055/0.388, allocations: 5.658 MB / 493 MB, free: 12.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.647e-05/0.3881, allocations: 26.38 kB / 493 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.007961/0.396, allocations: 4.969 MB / 498 MB, free: 10.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.552e-05/0.3961, allocations: 48.44 kB / 498 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001065/0.3972, allocations: 0.77 MB / 498.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001462/0.3974, allocations: 121.5 kB / 498.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/0.4001, allocations: 0.9424 MB / 499.9 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001549/0.4003, allocations: 183.5 kB / 0.4883 GB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002427/0.4027, allocations: 218.2 kB / 0.4885 GB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003278/0.403, allocations: 254.8 kB / 0.4888 GB, free: 8.676 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.001761/0.4048, allocations: 1.204 MB / 0.49 GB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003606/0.4052, allocations: 197.8 kB / 0.4902 GB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005626/0.4057, allocations: 268.8 kB / 0.4904 GB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009527/0.4067, allocations: 0.7126 MB / 0.4911 GB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.4067, allocations: 3.5 kB / 0.4911 GB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.4067, allocations: 8.547 kB / 0.4911 GB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005037/0.4118, allocations: 3.206 MB / 0.4942 GB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.4118, allocations: 12 kB / 0.4943 GB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005215/0.4124, allocations: 155.7 kB / 0.4944 GB, free: 3.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.501e-05/0.4124, allocations: 12.81 kB / 0.4944 GB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.116e-05/0.4124, allocations: 27.98 kB / 0.4944 GB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-05/0.4125, allocations: 19.94 kB / 0.4945 GB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.438e-06/0.4125, allocations: 15.94 kB / 0.4945 GB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.4143, allocations: 1.72 MB / 0.4962 GB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004073/0.4147, allocations: 282.3 kB / 0.4964 GB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.4149, allocations: 24 kB / 0.4965 GB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006475/0.4155, allocations: 49.67 kB / 0.4965 GB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.4156, allocations: 83.61 kB / 0.4966 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.378e-05/0.4157, allocations: 45.25 kB / 0.4966 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001964/0.4177, allocations: 1.479 MB / 0.4981 GB, free: 15.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4177, allocations: 0 / 0.4981 GB, free: 15.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003014/0.4207, allocations: 0.513 MB / 0.4986 GB, free: 14.88 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.0003421/0.4211, allocations: 198.8 kB / 0.4988 GB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004242/0.4253, allocations: 2.79 MB / 0.5015 GB, free: 11.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.4253, allocations: 4 kB / 0.5015 GB, free: 11.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000672/0.426, allocations: 0.5343 MB / 0.502 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003828/0.4299, allocations: 209.8 kB / 0.5022 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008284/0.4382, allocations: 5.84 MB / 0.5079 GB, free: 5.168 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001847/0.44, allocations: 1.923 MB / 0.5098 GB, free: 3.215 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005143/0.4406, allocations: 183.4 kB / 0.51 GB, free: 3.035 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4406, allocations: 0 / 0.51 GB, free: 3.035 MB / 382.1 MB Notification: Performance of Templates: time 0.04644/0.487, allocations: 29.68 MB / 0.5389 GB, free: 5.387 MB / 414.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)