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: translateModel(VehicleInterfaces.Roads.Examples.CheckContactCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation") translateModel(VehicleInterfaces.Roads.Examples.CheckContactCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009958/0.009958, allocations: 96.3 kB / 15.73 MB, free: 6.484 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.001802/0.001802, allocations: 191.6 kB / 16.67 MB, free: 6.391 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.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.2068/0.2068, allocations: 7.986 MB / 298.5 MB, free: 2.246 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.91 kB / 413.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3296, allocations: 51.21 MB / 464.3 MB, free: 18.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckContactCalculation): time 0.006206/0.3359, allocations: 5.626 MB / 469.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003579/0.3395, allocations: 1.992 MB / 471.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004173/0.3399, allocations: 18.88 kB / 471.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000939/0.3409, allocations: 415 kB / 472.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001447/0.3424, allocations: 0.7327 MB / 473.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.3427, allocations: 108.7 kB / 473.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001709/0.3444, allocations: 1.581 MB / 474.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004287/0.3448, allocations: 325.5 kB / 475.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005672/0.3454, allocations: 0.5159 MB / 475.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009263/0.3463, allocations: 0.774 MB / 476.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002081/0.3465, allocations: 92.56 kB / 476.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007717/0.3473, allocations: 398.7 kB / 476.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006031/0.3479, allocations: 0.7165 MB / 477.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006036/0.3486, allocations: 0.8887 MB / 478.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002554/0.3511, allocations: 2.863 MB / 481.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3511, allocations: 0 / 481.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3511, allocations: 0 / 481.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.682e-05/0.3512, allocations: 1.219 kB / 481.3 MB, free: 8.516 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.002823/0.354, allocations: 2.2 MB / 483.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3541, allocations: 9.656 kB / 483.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00598/0.36, allocations: 1.752 MB / 485.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.3614, allocations: 0.9046 MB / 486.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.723e-05/0.3615, allocations: 95.11 kB / 486.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000207/0.3617, allocations: 106.8 kB / 486.4 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005789/0.3675, allocations: 5.116 MB / 491.5 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.349e-05/0.3676, allocations: 25.44 kB / 491.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001808/0.3677, allocations: 57.06 kB / 491.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001949/0.3697, allocations: 1.242 MB / 492.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007354/0.3771, allocations: 4.492 MB / 497.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02333/0.4004, allocations: 20.62 MB / 0.5058 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002248/0.4027, allocations: 1.671 MB / 0.5074 GB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001179/0.4039, allocations: 0.7606 MB / 0.5082 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001417/0.404, allocations: 89.05 kB / 0.5082 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.4041, allocations: 54.44 kB / 0.5083 GB, free: 4.316 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.757e-06/0.4041, allocations: 0 / 0.5083 GB, free: 4.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=96): time 0.06137/0.4655, allocations: 12.57 MB / 0.5206 GB, free: 7.695 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.4656, allocations: 144.4 kB / 0.5207 GB, free: 7.523 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004093/0.4697, allocations: 2.402 MB / 0.5231 GB, free: 5.086 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002329/0.47, allocations: 37.7 kB / 0.5231 GB, free: 5.043 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/0.4714, allocations: 1.812 MB / 0.5249 GB, free: 3.211 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005625/0.472, allocations: 416.9 kB / 0.5253 GB, free: 2.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001087/0.473, allocations: 0.8021 MB / 0.526 GB, free: 1.988 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.4732, allocations: 361.9 kB / 0.5264 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00211/0.4753, allocations: 1.343 MB / 0.5277 GB, free: 288 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004238/0.4796, allocations: 3.953 MB / 0.5316 GB, free: 11.01 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007664/0.4873, allocations: 5.679 MB / 0.5371 GB, free: 4.031 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/0.4874, allocations: 27.94 kB / 0.5371 GB, free: 4.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=522) (initialization): time 0.06675/0.5542, allocations: 14.64 MB / 0.5514 GB, free: 5.336 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.848e-05/0.5543, allocations: 44 kB / 0.5515 GB, free: 5.293 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/0.5544, allocations: 96 kB / 0.5516 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004441/0.5589, allocations: 1.453 MB / 0.553 GB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002735/0.5617, allocations: 0.8694 MB / 0.5538 GB, free: 2.871 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002747/0.5644, allocations: 1.911 MB / 0.5557 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003284/0.5677, allocations: 0.6128 MB / 0.5563 GB, free: 324 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005207/0.5683, allocations: 256 kB / 0.5565 GB, free: 68 kB / 430.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.001885/0.5702, allocations: 1.16 MB / 0.5577 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003504/0.5705, allocations: 206.6 kB / 0.5579 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004652/0.5752, allocations: 1.889 MB / 0.5597 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007893/0.576, allocations: 135.7 kB / 0.5598 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.576, allocations: 0 / 0.5598 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.576, allocations: 3.984 kB / 0.5598 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008624/0.5847, allocations: 3.842 MB / 0.5636 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.5847, allocations: 3.938 kB / 0.5636 GB, free: 8.742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003657/0.5851, allocations: 87.83 kB / 0.5637 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004032/0.5891, allocations: 1.335 MB / 0.565 GB, free: 7.316 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.5892, allocations: 23.98 kB / 0.565 GB, free: 7.293 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00251/0.5918, allocations: 1.727 MB / 0.5667 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5918, allocations: 3.938 kB / 0.5667 GB, free: 5.539 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/0.596, allocations: 2.311 MB / 0.569 GB, free: 3.199 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009579/0.597, allocations: 411.3 kB / 0.5694 GB, free: 2.777 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/0.5972, allocations: 19.98 kB / 0.5694 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008174/0.598, allocations: 63.91 kB / 0.5694 GB, free: 2.695 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.99e-05/0.5981, allocations: 39.94 kB / 0.5695 GB, free: 2.656 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.668e-05/0.5982, allocations: 24 kB / 0.5695 GB, free: 2.633 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002311/0.6005, allocations: 1.482 MB / 0.5709 GB, free: 1.133 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.373e-06/0.6006, allocations: 0 / 0.5709 GB, free: 1.133 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003045/0.6036, allocations: 0.5928 MB / 0.5715 GB, free: 0.5391 MB / 446.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.0004523/0.6041, allocations: 186.9 kB / 0.5717 GB, free: 352 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005753/0.6098, allocations: 3.066 MB / 0.5747 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.6099, allocations: 0 / 0.5747 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.6113, allocations: 0.7602 MB / 0.5754 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.6129, allocations: 187.4 kB / 0.5756 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009349/0.6222, allocations: 4.441 MB / 0.58 GB, free: 7.867 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001974/0.6242, allocations: 1.855 MB / 0.5818 GB, free: 5.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002958/0.6272, allocations: 1.268 MB / 0.583 GB, free: 4.707 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003119/0.6275, allocations: 135.4 kB / 0.5831 GB, free: 4.574 MB / 462.1 MB Notification: Performance of SimCode: time 1.403e-06/0.6275, allocations: 0 / 0.5831 GB, free: 4.574 MB / 462.1 MB Notification: Performance of Templates: time 0.27/0.8975, allocations: 22.46 MB / 0.6051 GB, free: 110.7 MB / 462.1 MB make -j1 -f VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation.makefile (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 & ./VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation.pipe 2>&1)