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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 110.4 kB / 18.94 MB, free: 2.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003352/0.003352, allocations: 221.1 kB / 22.26 MB, free: 5.215 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.746/1.746, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.2/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.2/package.mo): time 0.05341/0.05341, allocations: 8.099 MB / 320.5 MB, free: 11.28 MB / 254.1 MB " [Timeout remaining time 180] Using package VehicleInterfaces with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.2/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002225/0.002225, allocations: 64.14 kB / 446.2 MB, free: 1.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1487, allocations: 55.23 MB / 0.4896 GB, free: 10.51 MB / 366.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads): time 0.009024/0.1577, allocations: 5.617 MB / 0.4951 GB, free: 4.859 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005633/0.1634, allocations: 2.009 MB / 0.4971 GB, free: 2.844 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008911/0.1642, allocations: 19.94 kB / 0.4971 GB, free: 2.824 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001518/0.1658, allocations: 442 kB / 0.4975 GB, free: 2.391 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00217/0.1679, allocations: 0.7081 MB / 0.4982 GB, free: 1.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.1682, allocations: 99.7 kB / 0.4983 GB, free: 1.582 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002429/0.1707, allocations: 1.513 MB / 0.4998 GB, free: 68 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007735/0.1714, allocations: 365.8 kB / 0.5001 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008909/0.1723, allocations: 0.494 MB / 0.5006 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001502/0.1738, allocations: 0.7977 MB / 0.5014 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002436/0.1741, allocations: 80 kB / 0.5015 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.1752, allocations: 403.3 kB / 0.5019 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007212/0.1759, allocations: 0.7241 MB / 0.5026 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009521/0.1768, allocations: 0.8573 MB / 0.5034 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003507/0.1803, allocations: 2.753 MB / 0.5061 GB, free: 9.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1803, allocations: 0 / 0.5061 GB, free: 9.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1803, allocations: 0 / 0.5061 GB, free: 9.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.285e-05/0.1804, allocations: 4 kB / 0.5061 GB, free: 9.566 MB / 382.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.004818/0.1852, allocations: 2.096 MB / 0.5081 GB, free: 7.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.1853, allocations: 8.031 kB / 0.5081 GB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00064/0.1859, allocations: 369.6 kB / 0.5085 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00524/0.1911, allocations: 1.497 MB / 0.51 GB, free: 5.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.1931, allocations: 0.8022 MB / 0.5107 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.538e-05/0.1932, allocations: 82.03 kB / 0.5108 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006914/0.1938, allocations: 251.7 kB / 0.5111 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2976/0.4915, allocations: 5.033 MB / 0.516 GB, free: 24.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-05/0.4916, allocations: 27.31 kB / 0.516 GB, free: 24.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002144/0.4918, allocations: 70.61 kB / 0.5161 GB, free: 24.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00203/0.4938, allocations: 1.148 MB / 0.5172 GB, free: 24.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009288/0.5031, allocations: 4.295 MB / 0.5214 GB, free: 24.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02936/0.5325, allocations: 20.56 MB / 0.5415 GB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/0.5344, allocations: 0.8321 MB / 0.5423 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006706/0.5351, allocations: 410.2 kB / 0.5427 GB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.5351, allocations: 14.55 kB / 0.5427 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.5351, allocations: 39.12 kB / 0.5427 GB, free: 8.695 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 4.578e-06/0.5351, allocations: 1.219 kB / 0.5427 GB, free: 8.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=114): time 0.008992/0.5441, allocations: 4.013 MB / 0.5466 GB, free: 6.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.5442, allocations: 143.7 kB / 0.5468 GB, free: 6.699 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00445/0.5487, allocations: 2.395 MB / 0.5491 GB, free: 5.797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.5488, allocations: 44.27 kB / 0.5492 GB, free: 5.754 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.5499, allocations: 1.839 MB / 0.551 GB, free: 4.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003713/0.5503, allocations: 477.3 kB / 0.5514 GB, free: 3.746 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/0.5517, allocations: 0.8245 MB / 0.5522 GB, free: 3.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.5518, allocations: 354.1 kB / 0.5526 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/0.554, allocations: 1.277 MB / 0.5538 GB, free: 2.367 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00474/0.5588, allocations: 3.899 MB / 0.5576 GB, free: 14.08 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008287/0.5671, allocations: 5.656 MB / 0.5631 GB, free: 8.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00014/0.5672, allocations: 28 kB / 0.5632 GB, free: 8.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.01103/0.5782, allocations: 4.977 MB / 0.568 GB, free: 3.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.282e-05/0.5783, allocations: 44 kB / 0.5681 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001243/0.5796, allocations: 0.7657 MB / 0.5688 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001419/0.5797, allocations: 124 kB / 0.5689 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/0.583, allocations: 0.9396 MB / 0.5698 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001682/0.5832, allocations: 191.2 kB / 0.57 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003276/0.5864, allocations: 219.7 kB / 0.5702 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004861/0.5869, allocations: 256 kB / 0.5705 GB, free: 1.156 MB / 398.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.002571/0.5895, allocations: 1.21 MB / 0.5717 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000773/0.5903, allocations: 206.6 kB / 0.5719 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005622/0.5908, allocations: 263 kB / 0.5721 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001251/0.5921, allocations: 0.7152 MB / 0.5728 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.5921, allocations: 3.938 kB / 0.5728 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.5921, allocations: 3.984 kB / 0.5728 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007048/0.5992, allocations: 3.18 MB / 0.5759 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.45e-05/0.5992, allocations: 12 kB / 0.5759 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006099/0.5998, allocations: 151.7 kB / 0.5761 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.058e-05/0.5998, allocations: 16 kB / 0.5761 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.047e-05/0.5999, allocations: 27.98 kB / 0.5761 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.122e-05/0.5999, allocations: 15.94 kB / 0.5761 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/0.5999, allocations: 15.94 kB / 0.5761 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002893/0.6028, allocations: 1.737 MB / 0.5778 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008382/0.6037, allocations: 198.5 kB / 0.578 GB, free: 9.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000205/0.6039, allocations: 31.97 kB / 0.5781 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006622/0.6045, allocations: 43.95 kB / 0.5781 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.6047, allocations: 91.64 kB / 0.5782 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.673e-05/0.6047, allocations: 40 kB / 0.5782 GB, free: 8.887 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002787/0.6075, allocations: 1.474 MB / 0.5797 GB, free: 7.395 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6075, allocations: 0 / 0.5797 GB, free: 7.395 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003734/0.6113, allocations: 0.5116 MB / 0.5802 GB, free: 6.883 MB / 414.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.003333/0.6146, allocations: 2.387 MB / 0.5825 GB, free: 4.352 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006157/0.6208, allocations: 2.673 MB / 0.5851 GB, free: 1.699 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/0.6208, allocations: 0 / 0.5851 GB, free: 1.699 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008465/0.6216, allocations: 0.4909 MB / 0.5856 GB, free: 1.211 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/0.6238, allocations: 211.8 kB / 0.5858 GB, free: 1.008 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04975/0.6735, allocations: 25.69 MB / 0.6109 GB, free: 3.719 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/0.6759, allocations: 1.922 MB / 0.6128 GB, free: 1.773 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003551/0.6795, allocations: 1.411 MB / 0.6141 GB, free: 368 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001359/0.6808, allocations: 0.839 MB / 0.615 GB, free: 15.52 MB / 462.1 MB Notification: Performance of SimCode: time 1.703e-06/0.6808, allocations: 0 / 0.615 GB, free: 15.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/0.7822, allocations: 35.79 MB / 0.6499 GB, free: 11.95 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.21/20, allocations: 0 / 0.6499 GB, free: 11.95 MB / 494.1 MB " [Timeout remaining time 640] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 23.401618773001246] Failed to read output from testmodel.py, exit status != 0: 20.134663537999586 20.162193734 19.976735285 Calling exit ...