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.001534/0.001534, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001889/0.001889, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1501/0.1501, allocations: 7.99 MB / 298.4 MB, free: 2.328 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 59.91 kB / 360.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07912/0.08035, allocations: 51.21 MB / 411.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads): time 0.005909/0.08629, allocations: 5.576 MB / 417.5 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.08904, allocations: 1.935 MB / 419.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002317/0.08929, allocations: 23.94 kB / 419.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008701/0.09017, allocations: 410.1 kB / 419.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001112/0.0913, allocations: 0.6963 MB / 420.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.09151, allocations: 91.77 kB / 420.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001364/0.09289, allocations: 1.537 MB / 422.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003612/0.09326, allocations: 322.1 kB / 422.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003966/0.09366, allocations: 497.8 kB / 423 MB, free: 244 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1466/0.2403, allocations: 0.7101 MB / 423.7 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002749/0.2406, allocations: 80.09 kB / 423.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007025/0.2413, allocations: 390.9 kB / 424.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000436/0.2417, allocations: 0.7136 MB / 424.9 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005281/0.2423, allocations: 0.8716 MB / 425.7 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001556/0.2438, allocations: 2.625 MB / 428.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2438, allocations: 0.9062 kB / 428.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2438, allocations: 0 / 428.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.018e-05/0.2439, allocations: 0.5 kB / 428.4 MB, free: 35.53 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.002324/0.2462, allocations: 2.144 MB / 430.5 MB, free: 34.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.2462, allocations: 9.531 kB / 430.5 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002875/0.2465, allocations: 373.9 kB / 430.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004567/0.2511, allocations: 1.483 MB / 432.4 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009994/0.2521, allocations: 0.8532 MB / 433.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.233e-05/0.2522, allocations: 81.7 kB / 433.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000589/0.2528, allocations: 255.1 kB / 433.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004054/0.2568, allocations: 5.042 MB / 438.6 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.906e-05/0.2569, allocations: 26.47 kB / 438.6 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001762/0.2571, allocations: 65.31 kB / 438.7 MB, free: 31.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001442/0.2585, allocations: 1.151 MB / 439.8 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004741/0.2633, allocations: 4.294 MB / 444.1 MB, free: 30.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01344/0.2767, allocations: 20.67 MB / 464.8 MB, free: 30.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/0.278, allocations: 1.328 MB / 466.1 MB, free: 29.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004627/0.2785, allocations: 446.6 kB / 466.6 MB, free: 29.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.2785, allocations: 10 kB / 466.6 MB, free: 29.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.2786, allocations: 43.56 kB / 466.6 MB, free: 29.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.576e-06/0.2786, allocations: 0 / 466.6 MB, free: 29.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=114): time 0.005283/0.2839, allocations: 3.955 MB / 470.6 MB, free: 27.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.2839, allocations: 144.8 kB / 470.7 MB, free: 27.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002758/0.2867, allocations: 2.402 MB / 473.1 MB, free: 26.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.774e-05/0.2868, allocations: 36.89 kB / 473.1 MB, free: 26.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007679/0.2876, allocations: 1.755 MB / 474.9 MB, free: 25.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003006/0.2879, allocations: 451 kB / 475.3 MB, free: 24.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008313/0.2887, allocations: 0.8173 MB / 476.2 MB, free: 24.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.2889, allocations: 360.1 kB / 476.5 MB, free: 24.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001669/0.2906, allocations: 1.274 MB / 477.8 MB, free: 23.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002621/0.2932, allocations: 3.906 MB / 481.7 MB, free: 19.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00514/0.2983, allocations: 5.656 MB / 487.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.996e-05/0.2984, allocations: 31.94 kB / 487.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.007287/0.3057, allocations: 4.961 MB / 492.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.772e-05/0.3058, allocations: 45.06 kB / 492.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008859/0.3067, allocations: 0.7731 MB / 493.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001013/0.3068, allocations: 121.4 kB / 493.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/0.3093, allocations: 0.9447 MB / 494.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001409/0.3094, allocations: 182.8 kB / 494.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002359/0.3118, allocations: 219.8 kB / 494.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003108/0.3121, allocations: 257.8 kB / 494.9 MB, free: 12.81 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.001604/0.3137, allocations: 1.203 MB / 496.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.3141, allocations: 201.3 kB / 496.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004038/0.3145, allocations: 263.5 kB / 496.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000911/0.3154, allocations: 0.7171 MB / 497.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.3154, allocations: 4.75 kB / 497.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.3154, allocations: 7.328 kB / 497.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004669/0.3201, allocations: 3.202 MB / 0.4887 GB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/0.3201, allocations: 12 kB / 0.4887 GB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005034/0.3206, allocations: 157 kB / 0.4889 GB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.457e-05/0.3207, allocations: 16 kB / 0.4889 GB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.816e-05/0.3207, allocations: 24.7 kB / 0.4889 GB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.534e-05/0.3207, allocations: 20.34 kB / 0.4889 GB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.888e-06/0.3208, allocations: 15.94 kB / 0.489 GB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.3224, allocations: 1.722 MB / 0.4906 GB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003139/0.3227, allocations: 275.1 kB / 0.4909 GB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/0.3229, allocations: 24.39 kB / 0.4909 GB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006543/0.3236, allocations: 45.78 kB / 0.491 GB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.3237, allocations: 82.78 kB / 0.491 GB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.124e-05/0.3238, allocations: 41.73 kB / 0.4911 GB, free: 5.629 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001789/0.3256, allocations: 1.484 MB / 0.4925 GB, free: 4.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3256, allocations: 0 / 0.4925 GB, free: 4.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002752/0.3283, allocations: 0.5163 MB / 0.493 GB, free: 3.859 MB / 366.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.002103/0.3304, allocations: 2.365 MB / 0.4953 GB, free: 1.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004045/0.3345, allocations: 2.937 MB / 0.4982 GB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3345, allocations: 0 / 0.4982 GB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006283/0.3352, allocations: 0.5423 MB / 0.4987 GB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.3367, allocations: 196.8 kB / 0.4989 GB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03034/0.367, allocations: 27.21 MB / 0.5255 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001713/0.3688, allocations: 1.929 MB / 0.5274 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003038/0.3718, allocations: 1.403 MB / 0.5288 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.3729, allocations: 0.843 MB / 0.5296 GB, free: 10.78 MB / 414.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3729, allocations: 3.938 kB / 0.5296 GB, free: 10.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5133/0.8861, allocations: 34.77 MB / 0.5635 GB, free: 8.242 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.58, allocations: 10.62 kB / 0.5636 GB, free: 8.234 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)