Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation.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.CheckContactCalculation,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckContactCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(VehicleInterfaces.Roads.Examples.CheckContactCalculation,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckContactCalculation",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.004722/0.004722, allocations: 98.39 kB / 15.73 MB, free: 6.031 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.00126/0.001261, allocations: 194 kB / 16.67 MB, free: 5.953 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04732/0.04732, allocations: 8.017 MB / 298.5 MB, free: 7.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 67.72 kB / 412.6 MB, free: 23.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08375/0.0856, allocations: 51.22 MB / 463.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckContactCalculation): time 0.006848/0.09248, allocations: 5.622 MB / 469.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003512/0.09602, allocations: 1.994 MB / 471.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003392/0.09638, allocations: 19.94 kB / 471.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009449/0.09738, allocations: 414.2 kB / 471.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001401/0.0988, allocations: 0.7118 MB / 472.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002593/0.09907, allocations: 111.7 kB / 472.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00184/0.1009, allocations: 1.589 MB / 474.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004686/0.1014, allocations: 330.4 kB / 474.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005933/0.102, allocations: 0.5135 MB / 475.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009551/0.103, allocations: 0.7706 MB / 475.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001775/0.1032, allocations: 92 kB / 476 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007055/0.1039, allocations: 399.3 kB / 476.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006378/0.1045, allocations: 0.7244 MB / 477.1 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007814/0.1053, allocations: 0.8847 MB / 478 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002866/0.1082, allocations: 2.87 MB / 480.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1082, allocations: 0 / 480.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1082, allocations: 0 / 480.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.77e-05/0.1082, allocations: 4 kB / 480.8 MB, free: 2.992 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: 754 * Number of variables: 754 Notification: Performance of Generate backend data structure: time 0.003201/0.1115, allocations: 2.198 MB / 483 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1115, allocations: 11.97 kB / 483 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003986/0.1119, allocations: 365.3 kB / 483.4 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006879/0.1188, allocations: 1.754 MB / 485.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/0.1204, allocations: 0.8977 MB / 486.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.187e-05/0.1205, allocations: 82 kB / 486.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002324/0.1207, allocations: 103.9 kB / 486.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007126/0.1278, allocations: 5.118 MB / 491.4 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.328e-05/0.1279, allocations: 23.75 kB / 491.4 MB, free: 7.855 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001897/0.1281, allocations: 59.91 kB / 491.4 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002553/0.1307, allocations: 1.24 MB / 492.7 MB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007772/0.1384, allocations: 4.48 MB / 497.2 MB, free: 2.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2054/0.3439, allocations: 20.63 MB / 0.5057 GB, free: 30.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002132/0.346, allocations: 1.673 MB / 0.5073 GB, free: 29.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.3472, allocations: 0.7499 MB / 0.508 GB, free: 29.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001114/0.3473, allocations: 93.72 kB / 0.5081 GB, free: 29.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.3474, allocations: 45.44 kB / 0.5081 GB, free: 29.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.547e-06/0.3474, allocations: 0 / 0.5081 GB, free: 29.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=96): time 0.06175/0.4091, allocations: 12.58 MB / 0.5204 GB, free: 26.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.4092, allocations: 141.3 kB / 0.5206 GB, free: 26.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002833/0.4121, allocations: 2.408 MB / 0.5229 GB, free: 25.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.4122, allocations: 36.92 kB / 0.523 GB, free: 25.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007926/0.413, allocations: 1.818 MB / 0.5247 GB, free: 24.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003428/0.4134, allocations: 408.4 kB / 0.5251 GB, free: 23.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007794/0.4141, allocations: 0.8107 MB / 0.5259 GB, free: 23.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.4142, allocations: 355 kB / 0.5262 GB, free: 23.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001701/0.416, allocations: 1.344 MB / 0.5276 GB, free: 22.49 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.4183, allocations: 3.958 MB / 0.5314 GB, free: 18.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004481/0.4228, allocations: 5.685 MB / 0.537 GB, free: 12.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.577e-05/0.4229, allocations: 28.88 kB / 0.537 GB, free: 12.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=522) (initialization): time 0.05952/0.4824, allocations: 14.62 MB / 0.5513 GB, free: 13.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.326e-05/0.4825, allocations: 48 kB / 0.5513 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.4826, allocations: 92 kB / 0.5514 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004492/0.4871, allocations: 1.462 MB / 0.5528 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002694/0.4898, allocations: 0.8693 MB / 0.5537 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002949/0.4928, allocations: 1.908 MB / 0.5556 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003003/0.4958, allocations: 0.6074 MB / 0.5562 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004544/0.4963, allocations: 251.2 kB / 0.5564 GB, free: 8.309 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 424 * 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 (476): * Single equations (assignments): 471 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.001717/0.498, allocations: 1.17 MB / 0.5575 GB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003379/0.4984, allocations: 206.6 kB / 0.5577 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004858/0.5032, allocations: 1.887 MB / 0.5596 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006717/0.504, allocations: 131.8 kB / 0.5597 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.504, allocations: 0 / 0.5597 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/0.504, allocations: 11.92 kB / 0.5597 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008912/0.5129, allocations: 3.842 MB / 0.5635 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5129, allocations: 0 / 0.5635 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000387/0.5133, allocations: 91.88 kB / 0.5636 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004257/0.5176, allocations: 1.334 MB / 0.5649 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.5177, allocations: 19.98 kB / 0.5649 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002741/0.5205, allocations: 1.74 MB / 0.5666 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5205, allocations: 2.875 kB / 0.5666 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00417/0.5247, allocations: 2.314 MB / 0.5688 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00078/0.5255, allocations: 403.4 kB / 0.5692 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/0.5257, allocations: 16 kB / 0.5692 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000814/0.5265, allocations: 63.89 kB / 0.5693 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.5266, allocations: 43.33 kB / 0.5693 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.371e-05/0.5267, allocations: 31.98 kB / 0.5694 GB, free: 10.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002376/0.5291, allocations: 1.474 MB / 0.5708 GB, free: 9.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5291, allocations: 4 kB / 0.5708 GB, free: 9.426 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00295/0.5321, allocations: 0.5927 MB / 0.5714 GB, free: 8.836 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 48 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004853/0.537, allocations: 2.962 MB / 0.5743 GB, free: 5.855 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005942/0.5429, allocations: 3.065 MB / 0.5773 GB, free: 2.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.543, allocations: 1.688 kB / 0.5773 GB, free: 2.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.5445, allocations: 0.764 MB / 0.578 GB, free: 2.062 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.5459, allocations: 185.2 kB / 0.5782 GB, free: 1.883 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1548/0.7006, allocations: 45.1 MB / 0.6222 GB, free: 1.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002356/0.703, allocations: 1.855 MB / 0.6241 GB, free: 15.54 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002835/0.7059, allocations: 1.264 MB / 0.6253 GB, free: 14.27 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/0.7071, allocations: 0.7961 MB / 0.6261 GB, free: 13.48 MB / 478.1 MB Notification: Performance of SimCode: time 7.22e-07/0.7071, allocations: 5.578 kB / 0.6261 GB, free: 13.48 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08177/0.7889, allocations: 39.71 MB / 0.6648 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.14/18.93, allocations: 3.938 kB / 0.6648 GB, free: 6.012 MB / 0.4981 GB (rm -f VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation.sim & python3 -m fmpy simulate --output-file VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation_res.csv --start-time 0 --stop-time 6.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00248 VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckContactCalculation.fmu > VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation.pipe 2>&1)