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.001454/0.001454, allocations: 106.3 kB / 16.41 MB, free: 6.5 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.00147/0.00147, allocations: 183 kB / 17.34 MB, free: 5.766 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04216/0.04216, allocations: 8.007 MB / 299.2 MB, free: 7.102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 63.89 kB / 413.8 MB, free: 22.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09901/0.1002, allocations: 51.22 MB / 465 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads): time 0.007037/0.1073, allocations: 5.576 MB / 470.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003935/0.1113, allocations: 1.931 MB / 472.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000742/0.112, allocations: 16 kB / 472.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.1134, allocations: 410.1 kB / 472.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001894/0.1153, allocations: 0.707 MB / 473.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003562/0.1156, allocations: 95.69 kB / 473.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002191/0.1178, allocations: 1.534 MB / 475.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006647/0.1185, allocations: 314.1 kB / 475.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008682/0.1194, allocations: 0.4939 MB / 476 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001161/0.1206, allocations: 0.716 MB / 476.7 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003553/0.121, allocations: 80 kB / 476.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000986/0.122, allocations: 383.3 kB / 477.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008029/0.1228, allocations: 0.7245 MB / 477.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008222/0.1236, allocations: 0.8728 MB / 478.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002686/0.1263, allocations: 2.77 MB / 481.6 MB, free: 2.906 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1263, allocations: 4 kB / 481.6 MB, free: 2.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.165e-06/0.1263, allocations: 0 / 481.6 MB, free: 2.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.898e-05/0.1264, allocations: 0 / 481.6 MB, free: 2.902 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.00318/0.1295, allocations: 2.143 MB / 483.7 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.1296, allocations: 8.031 kB / 483.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004506/0.1341, allocations: 1.484 MB / 485.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/0.1357, allocations: 0.8624 MB / 486.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.992e-05/0.1358, allocations: 86.03 kB / 486.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006432/0.1365, allocations: 251.7 kB / 486.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005738/0.1422, allocations: 5.034 MB / 491.4 MB, free: 8.457 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.869e-05/0.1423, allocations: 27.72 kB / 491.5 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/0.1425, allocations: 71.83 kB / 491.5 MB, free: 8.359 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001605/0.1441, allocations: 1.154 MB / 492.7 MB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00647/0.1506, allocations: 4.289 MB / 497 MB, free: 2.906 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3404/0.491, allocations: 20.59 MB / 0.5054 GB, free: 29.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.4932, allocations: 1.328 MB / 0.5067 GB, free: 29.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007977/0.494, allocations: 451.8 kB / 0.5072 GB, free: 29.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.494, allocations: 6.844 kB / 0.5072 GB, free: 29.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.4941, allocations: 37.72 kB / 0.5072 GB, free: 29.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 4.879e-06/0.4941, allocations: 0.5 kB / 0.5072 GB, free: 29.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=114): time 0.008377/0.5025, allocations: 3.974 MB / 0.5111 GB, free: 28.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.5025, allocations: 140.3 kB / 0.5112 GB, free: 27.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005011/0.5076, allocations: 2.399 MB / 0.5136 GB, free: 27.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001627/0.5077, allocations: 38.16 kB / 0.5136 GB, free: 27.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001313/0.5091, allocations: 1.759 MB / 0.5153 GB, free: 26.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005183/0.5096, allocations: 459.2 kB / 0.5158 GB, free: 25.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001481/0.5111, allocations: 0.8183 MB / 0.5166 GB, free: 25.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.5112, allocations: 354 kB / 0.5169 GB, free: 25.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002629/0.5139, allocations: 1.28 MB / 0.5181 GB, free: 24.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003977/0.5179, allocations: 3.897 MB / 0.5219 GB, free: 20.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008151/0.526, allocations: 5.658 MB / 0.5275 GB, free: 16.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001412/0.5262, allocations: 31.28 kB / 0.5275 GB, free: 16.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.01115/0.5374, allocations: 4.958 MB / 0.5323 GB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.061e-05/0.5375, allocations: 46.84 kB / 0.5324 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001216/0.5387, allocations: 0.7732 MB / 0.5331 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001596/0.5389, allocations: 122.9 kB / 0.5333 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003674/0.5426, allocations: 0.9408 MB / 0.5342 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001431/0.5427, allocations: 184.5 kB / 0.5344 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004038/0.5468, allocations: 223.5 kB / 0.5346 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000435/0.5472, allocations: 256.9 kB / 0.5348 GB, free: 13.49 MB / 382.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.002006/0.5493, allocations: 1.207 MB / 0.536 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005639/0.5498, allocations: 201.3 kB / 0.5362 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004956/0.5503, allocations: 265.3 kB / 0.5364 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001085/0.5514, allocations: 0.7132 MB / 0.5371 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/0.5515, allocations: 3.703 kB / 0.5371 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.5515, allocations: 3.75 kB / 0.5371 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005931/0.5574, allocations: 3.198 MB / 0.5403 GB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/0.5574, allocations: 8 kB / 0.5403 GB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006545/0.5581, allocations: 159.7 kB / 0.5404 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-05/0.5581, allocations: 16.38 kB / 0.5404 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.023e-05/0.5582, allocations: 27.75 kB / 0.5405 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.65e-05/0.5582, allocations: 27.92 kB / 0.5405 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/0.5583, allocations: 15.88 kB / 0.5405 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001894/0.5602, allocations: 1.71 MB / 0.5422 GB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005687/0.5607, allocations: 270.9 kB / 0.5424 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000389/0.5611, allocations: 35.98 kB / 0.5425 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009859/0.5621, allocations: 43.31 kB / 0.5425 GB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.5623, allocations: 87.62 kB / 0.5426 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.405e-05/0.5623, allocations: 39.98 kB / 0.5426 GB, free: 5.941 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002301/0.5647, allocations: 1.478 MB / 0.5441 GB, free: 4.445 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5647, allocations: 3.656 kB / 0.5441 GB, free: 4.445 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003739/0.5684, allocations: 0.522 MB / 0.5446 GB, free: 3.93 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.000419/0.5688, allocations: 177.3 kB / 0.5448 GB, free: 3.758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003659/0.5725, allocations: 2.818 MB / 0.5475 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.508e-05/0.5725, allocations: 0 / 0.5475 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005628/0.5731, allocations: 0.5471 MB / 0.548 GB, free: 440 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001963/0.5751, allocations: 197.7 kB / 0.5482 GB, free: 244 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009696/0.5848, allocations: 4.843 MB / 0.553 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002376/0.5872, allocations: 1.933 MB / 0.5549 GB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006126/0.5879, allocations: 179.4 kB / 0.555 GB, free: 9.113 MB / 398.1 MB Notification: Performance of SimCode: time 3.046e-06/0.5879, allocations: 0 / 0.555 GB, free: 9.113 MB / 398.1 MB Notification: Performance of Templates: time 0.04902/0.6369, allocations: 30.45 MB / 0.5848 GB, free: 10.74 MB / 430.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)