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.0009743/0.0009743, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009757/0.0009756, allocations: 194.7 kB / 16.14 MB, free: 6.66 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.459/1.459, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.2074/0.2074, allocations: 7.984 MB / 298 MB, free: 2.387 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 59.91 kB / 360 MB, free: 15.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1149, allocations: 51.21 MB / 411.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads): time 0.01286/0.1278, allocations: 9.073 MB / 420.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006272/0.1341, allocations: 2.524 MB / 422.8 MB, free: 180 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001691/0.1359, allocations: 27.94 kB / 422.9 MB, free: 152 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2407/0.3766, allocations: 370.8 kB / 423.2 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001692/0.3784, allocations: 0.6703 MB / 423.9 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.3786, allocations: 89.48 kB / 424 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00158/0.3802, allocations: 2.182 MB / 426.2 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.3806, allocations: 322.4 kB / 426.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003865/0.381, allocations: 437.5 kB / 426.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006859/0.3817, allocations: 0.7762 MB / 427.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.3818, allocations: 54.38 kB / 427.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006148/0.3824, allocations: 391.4 kB / 428.1 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004334/0.3829, allocations: 0.7054 MB / 428.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005181/0.3834, allocations: 0.8647 MB / 429.7 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001912/0.3853, allocations: 2.624 MB / 432.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3853, allocations: 0 / 432.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3853, allocations: 0 / 432.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.968e-05/0.3854, allocations: 2.906 kB / 432.3 MB, free: 34.39 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.002607/0.388, allocations: 2.14 MB / 434.5 MB, free: 33.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.388, allocations: 13.34 kB / 434.5 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002988/0.3883, allocations: 372.5 kB / 434.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004236/0.3926, allocations: 1.479 MB / 436.3 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.3938, allocations: 0.8517 MB / 437.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.733e-05/0.3938, allocations: 91.64 kB / 437.2 MB, free: 32.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005744/0.3944, allocations: 249.2 kB / 437.5 MB, free: 32.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004553/0.399, allocations: 5.036 MB / 442.5 MB, free: 30.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.045e-05/0.399, allocations: 27.98 kB / 442.6 MB, free: 30.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001691/0.3992, allocations: 64.19 kB / 442.6 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0014/0.4006, allocations: 1.151 MB / 443.8 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005631/0.4062, allocations: 4.306 MB / 448.1 MB, free: 28.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01639/0.4227, allocations: 20.66 MB / 468.7 MB, free: 28.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.4244, allocations: 1.326 MB / 470.1 MB, free: 27.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005499/0.4249, allocations: 441 kB / 470.5 MB, free: 27.78 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.425, allocations: 6.516 kB / 470.5 MB, free: 27.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.425, allocations: 54.62 kB / 470.6 MB, free: 27.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.236e-06/0.425, allocations: 0 / 470.6 MB, free: 27.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=114): time 0.006035/0.4311, allocations: 3.954 MB / 474.5 MB, free: 25.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.929e-05/0.4312, allocations: 137.7 kB / 474.6 MB, free: 25.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003697/0.4349, allocations: 2.396 MB / 477 MB, free: 24.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.774e-05/0.435, allocations: 39.53 kB / 477.1 MB, free: 24.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.436, allocations: 1.763 MB / 478.8 MB, free: 23.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003594/0.4364, allocations: 459.3 kB / 479.3 MB, free: 22.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/0.4375, allocations: 0.822 MB / 480.1 MB, free: 22.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.4377, allocations: 354.3 kB / 480.5 MB, free: 22.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002032/0.4397, allocations: 1.279 MB / 481.7 MB, free: 21.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003135/0.4429, allocations: 3.903 MB / 485.6 MB, free: 17.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005724/0.4486, allocations: 5.655 MB / 491.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.089e-05/0.4487, allocations: 26.41 kB / 491.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.008406/0.4571, allocations: 4.963 MB / 496.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.968e-05/0.4572, allocations: 48 kB / 496.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001129/0.4583, allocations: 0.7703 MB / 497.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001613/0.4585, allocations: 124 kB / 497.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002617/0.4611, allocations: 0.9386 MB / 498.2 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001649/0.4613, allocations: 183.2 kB / 498.3 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002729/0.464, allocations: 220.2 kB / 498.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003394/0.4644, allocations: 253.9 kB / 498.8 MB, free: 8.543 MB / 366.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.001845/0.4662, allocations: 1.204 MB / 0.4883 GB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000356/0.4666, allocations: 202 kB / 0.4885 GB, free: 7.273 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004338/0.467, allocations: 271.4 kB / 0.4887 GB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009412/0.468, allocations: 0.7142 MB / 0.4894 GB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/0.468, allocations: 4 kB / 0.4894 GB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.468, allocations: 3.609 kB / 0.4894 GB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004788/0.4728, allocations: 3.206 MB / 0.4926 GB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.4728, allocations: 11.56 kB / 0.4926 GB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005058/0.4734, allocations: 153.8 kB / 0.4927 GB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.569e-05/0.4734, allocations: 15.98 kB / 0.4927 GB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-05/0.4734, allocations: 30.89 kB / 0.4928 GB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.487e-05/0.4735, allocations: 19.94 kB / 0.4928 GB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/0.4735, allocations: 12.44 kB / 0.4928 GB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.4752, allocations: 1.724 MB / 0.4945 GB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003753/0.4756, allocations: 270.3 kB / 0.4947 GB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.4758, allocations: 27.94 kB / 0.4948 GB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006227/0.4764, allocations: 47.95 kB / 0.4948 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.4765, allocations: 83.67 kB / 0.4949 GB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-05/0.4766, allocations: 44 kB / 0.4949 GB, free: 1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001971/0.4786, allocations: 1.48 MB / 0.4964 GB, free: 15.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.873e-06/0.4786, allocations: 0 / 0.4964 GB, free: 15.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003007/0.4816, allocations: 0.519 MB / 0.4969 GB, free: 14.99 MB / 382.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.002463/0.4841, allocations: 2.365 MB / 0.4992 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004552/0.4887, allocations: 2.791 MB / 0.5019 GB, free: 9.719 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.4887, allocations: 4 kB / 0.5019 GB, free: 9.715 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008383/0.4895, allocations: 0.5328 MB / 0.5024 GB, free: 9.188 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/0.4915, allocations: 203.7 kB / 0.5026 GB, free: 8.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04509/0.5366, allocations: 28.06 MB / 0.53 GB, free: 8.496 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002579/0.5392, allocations: 1.929 MB / 0.5319 GB, free: 6.527 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003432/0.5426, allocations: 1.399 MB / 0.5333 GB, free: 5.125 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/0.5441, allocations: 0.8391 MB / 0.5341 GB, free: 4.289 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5441, allocations: 4 kB / 0.5341 GB, free: 4.285 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0624/0.6065, allocations: 34.11 MB / 0.5674 GB, free: 2.418 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/0.6068, allocations: 233 kB / 0.5677 GB, free: 2.164 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.548/3.155, allocations: 4.062 kB / 0.5677 GB, free: 2.16 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckFunctionDifferentiation_FlatRoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckFunctionDifferentiation_FlatRoads.fmu > VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.pipe 2>&1)