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.001106/0.001106, allocations: 108 kB / 15.6 MB, free: 132 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.001091/0.001091, allocations: 198.1 kB / 16.54 MB, free: 6.672 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.313/1.313, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.1385/0.1385, allocations: 7.982 MB / 298.4 MB, free: 2.281 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 67.89 kB / 360.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.082/0.08324, allocations: 51.21 MB / 411.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads): time 0.006171/0.08945, allocations: 5.572 MB / 417.5 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002979/0.09246, allocations: 1.939 MB / 419.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002424/0.09271, allocations: 20 kB / 419.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008179/0.09356, allocations: 410.1 kB / 419.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001115/0.09469, allocations: 0.6963 MB / 420.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.09491, allocations: 99.7 kB / 420.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001391/0.09631, allocations: 1.534 MB / 422.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.09668, allocations: 314.1 kB / 422.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004091/0.0971, allocations: 0.494 MB / 423 MB, free: 156 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1449/0.242, allocations: 0.7058 MB / 423.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002854/0.2424, allocations: 80.28 kB / 423.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007515/0.2431, allocations: 391.9 kB / 424.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004704/0.2436, allocations: 0.713 MB / 424.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005223/0.2441, allocations: 0.8683 MB / 425.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00161/0.2457, allocations: 2.624 MB / 428.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2458, allocations: 3 kB / 428.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2458, allocations: 1 kB / 428.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.68e-05/0.2458, allocations: 0 / 428.4 MB, free: 35.41 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.002308/0.2481, allocations: 2.146 MB / 430.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.2482, allocations: 10.12 kB / 430.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002824/0.2484, allocations: 368 kB / 430.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004455/0.2529, allocations: 1.484 MB / 432.4 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.254, allocations: 0.8542 MB / 433.2 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.02e-05/0.254, allocations: 83.64 kB / 433.3 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005692/0.2546, allocations: 256.2 kB / 433.5 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004183/0.2588, allocations: 5.039 MB / 438.6 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.79e-05/0.2588, allocations: 27.03 kB / 438.6 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001755/0.259, allocations: 65.44 kB / 438.7 MB, free: 31.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001413/0.2604, allocations: 1.146 MB / 439.8 MB, free: 31.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004938/0.2654, allocations: 4.307 MB / 444.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01415/0.2795, allocations: 20.66 MB / 464.8 MB, free: 30.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.2809, allocations: 1.332 MB / 466.1 MB, free: 29.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000447/0.2814, allocations: 448.4 kB / 466.6 MB, free: 29.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.2814, allocations: 5.922 kB / 466.6 MB, free: 29.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.31e-05/0.2814, allocations: 44.41 kB / 466.6 MB, free: 29.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.136e-06/0.2814, allocations: 0 / 466.6 MB, free: 29.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=114): time 0.005294/0.2867, allocations: 3.968 MB / 470.6 MB, free: 27.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.2868, allocations: 139.6 kB / 470.7 MB, free: 27.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002536/0.2893, allocations: 2.399 MB / 473.1 MB, free: 26.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.358e-05/0.2894, allocations: 37.14 kB / 473.1 MB, free: 26.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007135/0.2901, allocations: 1.755 MB / 474.9 MB, free: 25.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002473/0.2904, allocations: 460.8 kB / 475.3 MB, free: 24.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008118/0.2912, allocations: 0.8145 MB / 476.2 MB, free: 24.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2914, allocations: 356 kB / 476.5 MB, free: 24.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/0.293, allocations: 1.277 MB / 477.8 MB, free: 23.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002578/0.2956, allocations: 3.901 MB / 481.7 MB, free: 19.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004861/0.3005, allocations: 5.661 MB / 487.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.601e-05/0.3005, allocations: 27.06 kB / 487.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.007461/0.308, allocations: 4.966 MB / 492.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.662e-05/0.3081, allocations: 47.89 kB / 492.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009174/0.309, allocations: 0.7687 MB / 493.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001088/0.3091, allocations: 121.5 kB / 493.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00242/0.3116, allocations: 0.9411 MB / 494.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001494/0.3117, allocations: 180.8 kB / 494.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002379/0.3141, allocations: 218.8 kB / 494.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000287/0.3144, allocations: 261.3 kB / 494.9 MB, free: 12.77 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.001624/0.316, allocations: 1.201 MB / 496.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.3164, allocations: 197.3 kB / 496.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004626/0.3169, allocations: 267.5 kB / 496.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009006/0.3178, allocations: 0.7133 MB / 497.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.3178, allocations: 1.25 kB / 497.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3178, allocations: 7.797 kB / 497.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004661/0.3225, allocations: 3.204 MB / 0.4887 GB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.3225, allocations: 14.38 kB / 0.4887 GB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004923/0.323, allocations: 161 kB / 0.4889 GB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.355e-05/0.323, allocations: 16 kB / 0.4889 GB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.744e-05/0.3231, allocations: 24.7 kB / 0.4889 GB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.219e-05/0.3231, allocations: 18.66 kB / 0.4889 GB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/0.3231, allocations: 15.94 kB / 0.489 GB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.3248, allocations: 1.722 MB / 0.4906 GB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000329/0.3252, allocations: 271.2 kB / 0.4909 GB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002316/0.3254, allocations: 26.42 kB / 0.4909 GB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000643/0.3261, allocations: 50.58 kB / 0.491 GB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.3262, allocations: 82.83 kB / 0.491 GB, free: 5.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.27e-05/0.3263, allocations: 41.31 kB / 0.4911 GB, free: 5.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001986/0.3283, allocations: 1.483 MB / 0.4925 GB, free: 4.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3283, allocations: 0 / 0.4925 GB, free: 4.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002965/0.3312, allocations: 0.5228 MB / 0.493 GB, free: 3.746 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.002093/0.3333, allocations: 2.362 MB / 0.4953 GB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00404/0.3374, allocations: 2.936 MB / 0.4982 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.3374, allocations: 4 kB / 0.4982 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006088/0.338, allocations: 0.5355 MB / 0.4987 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.3393, allocations: 206.5 kB / 0.4989 GB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03054/0.3699, allocations: 27.2 MB / 0.5255 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001684/0.3716, allocations: 1.923 MB / 0.5274 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002979/0.3746, allocations: 1.41 MB / 0.5288 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/0.3756, allocations: 0.8429 MB / 0.5296 GB, free: 10.73 MB / 414.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3756, allocations: 0 / 0.5296 GB, free: 10.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06092/0.4366, allocations: 34.78 MB / 0.5635 GB, free: 8.203 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.958/8.395, allocations: 7.875 kB / 0.5635 GB, free: 8.195 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 & python3 -m fmpy simulate --output-file VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckFunctionDifferentiation_FlatRoads.fmu > VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_FlatRoads.pipe 2>&1)