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.0009584/0.0009583, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.0009959/0.0009959, allocations: 193.2 kB / 16.13 MB, free: 6.715 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.383/1.383, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.184/0.184, allocations: 7.978 MB / 297.9 MB, free: 2.387 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002261/0.002261, allocations: 59.91 kB / 360 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1185, allocations: 51.2 MB / 411.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckContactCalculation): time 0.01023/0.1288, allocations: 9.125 MB / 420.4 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005642/0.1345, allocations: 2.59 MB / 422.9 MB, free: 52 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001563/0.1361, allocations: 35.88 kB / 423 MB, free: 16 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2454/0.3815, allocations: 366.4 kB / 423.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002897/0.3844, allocations: 0.6822 MB / 424 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.385, allocations: 98.02 kB / 424.1 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003064/0.3881, allocations: 2.215 MB / 426.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008984/0.389, allocations: 324.1 kB / 426.7 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001052/0.39, allocations: 455.2 kB / 427.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001367/0.3914, allocations: 0.8358 MB / 427.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004722/0.3919, allocations: 64.31 kB / 428 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.3931, allocations: 384.1 kB / 428.4 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009067/0.394, allocations: 0.6956 MB / 429.1 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008103/0.3948, allocations: 0.8733 MB / 429.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002282/0.3971, allocations: 2.684 MB / 432.6 MB, free: 34.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.3971, allocations: 4 kB / 432.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3971, allocations: 3.281 kB / 432.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.148e-05/0.3972, allocations: 0 / 432.6 MB, free: 34.36 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.002746/0.3999, allocations: 2.137 MB / 434.8 MB, free: 33.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.4, allocations: 9.75 kB / 434.8 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000335/0.4003, allocations: 365.4 kB / 435.1 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005985/0.4063, allocations: 1.746 MB / 436.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.4079, allocations: 0.8846 MB / 437.8 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.016e-05/0.408, allocations: 82.06 kB / 437.8 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.4082, allocations: 109.8 kB / 437.9 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005531/0.4138, allocations: 5.109 MB / 443.1 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.529e-05/0.4138, allocations: 23.88 kB / 443.1 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001763/0.414, allocations: 61.53 kB / 443.1 MB, free: 30.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002089/0.4161, allocations: 1.244 MB / 444.4 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006506/0.4226, allocations: 4.486 MB / 448.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01964/0.4423, allocations: 20.66 MB / 469.5 MB, free: 28.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002322/0.4447, allocations: 1.665 MB / 471.2 MB, free: 27.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001291/0.446, allocations: 0.752 MB / 472 MB, free: 27.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/0.4461, allocations: 86.75 kB / 472 MB, free: 27.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.4462, allocations: 50.06 kB / 472.1 MB, free: 27.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.397e-06/0.4462, allocations: 0 / 472.1 MB, free: 27.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=96): time 0.06483/0.511, allocations: 12.57 MB / 484.7 MB, free: 23.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.09e-05/0.5111, allocations: 138.5 kB / 484.8 MB, free: 23.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005124/0.5163, allocations: 2.398 MB / 487.2 MB, free: 22.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002058/0.5165, allocations: 39.42 kB / 487.2 MB, free: 22.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.5178, allocations: 1.74 MB / 489 MB, free: 20.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005519/0.5184, allocations: 391.2 kB / 489.4 MB, free: 20.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001559/0.52, allocations: 0.799 MB / 490.2 MB, free: 19.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.5201, allocations: 354.7 kB / 490.5 MB, free: 19.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002417/0.5226, allocations: 1.342 MB / 491.8 MB, free: 18.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003343/0.5259, allocations: 3.963 MB / 495.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007428/0.5334, allocations: 5.683 MB / 0.4897 GB, free: 6.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.543e-05/0.5335, allocations: 24 kB / 0.4898 GB, free: 6.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=522) (initialization): time 0.06725/0.6008, allocations: 14.62 MB / 0.504 GB, free: 7.941 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001554/0.6009, allocations: 47.94 kB / 0.5041 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002038/0.6012, allocations: 96 kB / 0.5042 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004674/0.6059, allocations: 1.449 MB / 0.5056 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002919/0.6088, allocations: 0.8694 MB / 0.5064 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002935/0.6117, allocations: 1.916 MB / 0.5083 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003735/0.6155, allocations: 0.5952 MB / 0.5089 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007503/0.6163, allocations: 250.8 kB / 0.5091 GB, free: 2.695 MB / 382.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.002613/0.6189, allocations: 1.164 MB / 0.5103 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004975/0.6194, allocations: 201.4 kB / 0.5105 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005093/0.6245, allocations: 1.883 MB / 0.5123 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006741/0.6252, allocations: 135.8 kB / 0.5124 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.6252, allocations: 0 / 0.5124 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.6252, allocations: 7.922 kB / 0.5124 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/0.6354, allocations: 3.847 MB / 0.5162 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.6354, allocations: 0 / 0.5162 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004188/0.6358, allocations: 87.89 kB / 0.5163 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004236/0.6401, allocations: 1.35 MB / 0.5176 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.6402, allocations: 12 kB / 0.5176 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.6428, allocations: 1.733 MB / 0.5193 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.6428, allocations: 0 / 0.5193 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004134/0.6469, allocations: 2.303 MB / 0.5215 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008774/0.6478, allocations: 390.2 kB / 0.5219 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004283/0.6483, allocations: 21.88 kB / 0.5219 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.6493, allocations: 62.02 kB / 0.522 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.6494, allocations: 39.94 kB / 0.522 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.157e-05/0.6495, allocations: 31.94 kB / 0.5221 GB, free: 5.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003116/0.6527, allocations: 1.478 MB / 0.5235 GB, free: 3.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6527, allocations: 4 kB / 0.5235 GB, free: 3.836 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004133/0.6568, allocations: 0.588 MB / 0.5241 GB, free: 3.25 MB / 398.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.00493/0.6618, allocations: 2.951 MB / 0.527 GB, free: 280 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007028/0.6688, allocations: 3.056 MB / 0.53 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.6688, allocations: 0.75 kB / 0.53 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.6703, allocations: 0.76 MB / 0.5307 GB, free: 12.49 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001999/0.6723, allocations: 181.1 kB / 0.5309 GB, free: 12.31 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1617/0.834, allocations: 47.31 MB / 0.5771 GB, free: 8.953 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002834/0.8369, allocations: 1.851 MB / 0.5789 GB, free: 7.066 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003368/0.8403, allocations: 1.275 MB / 0.5801 GB, free: 5.785 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/0.8416, allocations: 0.785 MB / 0.5809 GB, free: 5 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/0.8417, allocations: 0 / 0.5809 GB, free: 5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2726/1.114, allocations: 39.41 MB / 0.6194 GB, free: 139.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/1.114, allocations: 240.3 kB / 0.6196 GB, free: 139 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.607/3.722, allocations: 6.078 kB / 0.6196 GB, free: 139 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckContactCalculation_fmu --startTime=0 --stopTime=6.2 --timeout=50 --tolerance=1e-06 VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckContactCalculation.fmu > VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckContactCalculation.pipe 2>&1)