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: "" <> buildModelFMU(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckFunctionDifferentiation_FlatRoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckFunctionDifferentiation_FlatRoads",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.007922/0.007922, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001866/0.001866, allocations: 202.4 kB / 16.68 MB, free: 5.969 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.473/1.473, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1437/0.1437, allocations: 7.985 MB / 298.5 MB, free: 2.164 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 59.89 kB / 412.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2389, allocations: 51.21 MB / 463.8 MB, free: 17.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads): time 0.005794/0.2448, allocations: 5.582 MB / 469.4 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003191/0.248, allocations: 1.929 MB / 471.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004797/0.2485, allocations: 17.84 kB / 471.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009761/0.2495, allocations: 414.8 kB / 471.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001356/0.2509, allocations: 0.6974 MB / 472.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002541/0.2511, allocations: 94.42 kB / 472.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001685/0.2528, allocations: 1.532 MB / 474.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004114/0.2533, allocations: 326.7 kB / 474.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005334/0.2538, allocations: 0.4892 MB / 474.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007719/0.2546, allocations: 0.7165 MB / 475.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001813/0.2548, allocations: 79.88 kB / 475.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007414/0.2555, allocations: 391.4 kB / 476.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006214/0.2562, allocations: 0.7097 MB / 476.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006102/0.2568, allocations: 0.8706 MB / 477.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002795/0.2596, allocations: 2.793 MB / 480.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.2596, allocations: 1.156 kB / 480.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.2596, allocations: 0 / 480.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.891e-05/0.2597, allocations: 4 kB / 480.4 MB, free: 8.574 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.003294/0.263, allocations: 2.201 MB / 482.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.263, allocations: 10.66 kB / 482.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003619/0.2634, allocations: 370.8 kB / 483 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004653/0.268, allocations: 1.5 MB / 484.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001415/0.2695, allocations: 0.8576 MB / 485.4 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.4e-05/0.2696, allocations: 84.88 kB / 485.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006436/0.2702, allocations: 250.3 kB / 485.7 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005601/0.2758, allocations: 5.042 MB / 490.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.842e-05/0.2759, allocations: 27.84 kB / 490.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001773/0.2761, allocations: 62.66 kB / 490.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001577/0.2777, allocations: 1.15 MB / 492 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007146/0.2848, allocations: 4.299 MB / 496.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02238/0.3072, allocations: 20.64 MB / 0.5048 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.309, allocations: 1.325 MB / 0.5061 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006119/0.3096, allocations: 451.2 kB / 0.5065 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.3097, allocations: 12 kB / 0.5065 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.3097, allocations: 34.67 kB / 0.5066 GB, free: 5.688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.096e-06/0.3097, allocations: 7.938 kB / 0.5066 GB, free: 5.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=114): time 0.006592/0.3163, allocations: 4.074 MB / 0.5105 GB, free: 1.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.748e-05/0.3164, allocations: 140.5 kB / 0.5107 GB, free: 1.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003328/0.3198, allocations: 2.402 MB / 0.513 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.3199, allocations: 41.69 kB / 0.5131 GB, free: 14.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/0.3213, allocations: 1.84 MB / 0.5149 GB, free: 13.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000493/0.3218, allocations: 476.4 kB / 0.5153 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/0.3229, allocations: 0.8259 MB / 0.5161 GB, free: 11.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.3231, allocations: 353.9 kB / 0.5165 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001882/0.325, allocations: 1.281 MB / 0.5177 GB, free: 10.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004002/0.329, allocations: 3.904 MB / 0.5215 GB, free: 4.895 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006892/0.3359, allocations: 5.661 MB / 0.5271 GB, free: 13.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.438e-05/0.3361, allocations: 28 kB / 0.5271 GB, free: 13.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.009151/0.3452, allocations: 4.96 MB / 0.5319 GB, free: 8.938 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.249e-05/0.3453, allocations: 44 kB / 0.532 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001082/0.3464, allocations: 0.7752 MB / 0.5327 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001296/0.3466, allocations: 120 kB / 0.5328 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002845/0.3494, allocations: 0.9396 MB / 0.5338 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001556/0.3496, allocations: 183.2 kB / 0.5339 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002568/0.3522, allocations: 227.6 kB / 0.5341 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004407/0.3526, allocations: 252 kB / 0.5344 GB, free: 6.414 MB / 414.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.001928/0.3545, allocations: 1.21 MB / 0.5356 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003733/0.3549, allocations: 202.6 kB / 0.5358 GB, free: 4.992 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005051/0.3554, allocations: 271.1 kB / 0.536 GB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001037/0.3565, allocations: 0.7151 MB / 0.5367 GB, free: 4 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.3565, allocations: 0 / 0.5367 GB, free: 4 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.3565, allocations: 7.984 kB / 0.5367 GB, free: 3.992 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005254/0.3618, allocations: 3.219 MB / 0.5399 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/0.3618, allocations: 8 kB / 0.5399 GB, free: 0.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005264/0.3624, allocations: 155.7 kB / 0.54 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.65e-05/0.3624, allocations: 12 kB / 0.54 GB, free: 428 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-05/0.3624, allocations: 35.98 kB / 0.5401 GB, free: 392 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.801e-05/0.3625, allocations: 15.94 kB / 0.5401 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.386e-05/0.3625, allocations: 20.38 kB / 0.5401 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/0.3645, allocations: 1.724 MB / 0.5418 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004618/0.3649, allocations: 279.5 kB / 0.5421 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.3651, allocations: 24 kB / 0.5421 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006265/0.3658, allocations: 51.95 kB / 0.5421 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.3659, allocations: 87.59 kB / 0.5422 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-05/0.366, allocations: 44.12 kB / 0.5423 GB, free: 13.99 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002268/0.3682, allocations: 1.482 MB / 0.5437 GB, free: 12.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3683, allocations: 0 / 0.5437 GB, free: 12.49 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002763/0.371, allocations: 0.5155 MB / 0.5442 GB, free: 11.98 MB / 430.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.002538/0.3736, allocations: 2.381 MB / 0.5465 GB, free: 9.453 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00456/0.3782, allocations: 2.813 MB / 0.5493 GB, free: 6.664 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.3782, allocations: 4 kB / 0.5493 GB, free: 6.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007465/0.3789, allocations: 0.5392 MB / 0.5498 GB, free: 6.125 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001551/0.3805, allocations: 203.6 kB / 0.55 GB, free: 5.922 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03524/0.4157, allocations: 25.71 MB / 0.5751 GB, free: 8.594 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001976/0.4178, allocations: 1.926 MB / 0.577 GB, free: 6.629 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002808/0.4206, allocations: 1.413 MB / 0.5784 GB, free: 5.211 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001202/0.4218, allocations: 0.8391 MB / 0.5792 GB, free: 4.375 MB / 462.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4218, allocations: 0 / 0.5792 GB, free: 4.375 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2485/0.6703, allocations: 32.2 MB / 0.6106 GB, free: 108.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.26, allocations: 5.344 kB / 0.6106 GB, free: 108.4 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckFunctionDifferentiation_FlatRoads.fmu > VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.pipe 2>&1)