Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_CircleRoads.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_CircleRoads,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckFunctionDifferentiation_CircleRoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_CircleRoads,fileNamePrefix="VehicleInterfaces_VehicleInterfaces_Roads_Examples_CheckFunctionDifferentiation_CircleRoads",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.004515/0.004514, allocations: 99.81 kB / 15.73 MB, free: 6.059 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.001072/0.001072, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.276/1.276, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/VehicleInterfaces 2.0.1-master/package.mo): time 0.04084/0.04084, allocations: 7.992 MB / 298.5 MB, free: 7.105 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 61.5 kB / 412.6 MB, free: 23.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08062/0.08177, allocations: 51.21 MB / 463.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_CircleRoads): time 0.006509/0.08832, allocations: 5.56 MB / 469.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.09192, allocations: 2.033 MB / 471.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000612/0.09255, allocations: 19.94 kB / 471.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.09366, allocations: 410.2 kB / 471.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001743/0.09542, allocations: 0.708 MB / 472.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004322/0.09587, allocations: 131.6 kB / 472.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001962/0.09785, allocations: 1.546 MB / 474.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006062/0.09847, allocations: 326.3 kB / 474.5 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007643/0.09925, allocations: 0.4979 MB / 475 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000975/0.1002, allocations: 0.7199 MB / 475.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002847/0.1005, allocations: 80 kB / 475.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008736/0.1014, allocations: 435.2 kB / 476.2 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007678/0.1022, allocations: 0.7166 MB / 476.9 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001125/0.1033, allocations: 0.869 MB / 477.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002916/0.1063, allocations: 2.811 MB / 480.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.1063, allocations: 3.938 kB / 480.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1063, allocations: 0 / 480.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001069/0.1064, allocations: 0 / 480.6 MB, free: 3.195 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: 764 * Number of variables: 764 Notification: Performance of Generate backend data structure: time 0.004167/0.1106, allocations: 2.21 MB / 482.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.1106, allocations: 12.03 kB / 482.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006113/0.1112, allocations: 365.6 kB / 483.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004838/0.1161, allocations: 1.501 MB / 484.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/0.1177, allocations: 0.8548 MB / 485.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.505e-05/0.1178, allocations: 86.05 kB / 485.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007349/0.1185, allocations: 255.7 kB / 485.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006227/0.1248, allocations: 5.037 MB / 490.9 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.715e-05/0.1249, allocations: 27.75 kB / 491 MB, free: 8.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002409/0.1251, allocations: 67.78 kB / 491 MB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001656/0.1268, allocations: 1.154 MB / 492.2 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006268/0.133, allocations: 4.293 MB / 496.5 MB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.22/0.353, allocations: 20.64 MB / 0.505 GB, free: 29.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.3545, allocations: 1.351 MB / 0.5063 GB, free: 29.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004932/0.355, allocations: 443.9 kB / 0.5067 GB, free: 29.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.3551, allocations: 8.312 kB / 0.5067 GB, free: 29.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.3551, allocations: 39.91 kB / 0.5068 GB, free: 29.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=86): time 3.566e-06/0.3551, allocations: 0 / 0.5068 GB, free: 29.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.01043/0.3655, allocations: 4.583 MB / 0.5113 GB, free: 27.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.3656, allocations: 138.4 kB / 0.5114 GB, free: 27.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00277/0.3684, allocations: 2.401 MB / 0.5137 GB, free: 27.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.118e-05/0.3684, allocations: 40.98 kB / 0.5138 GB, free: 27.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009135/0.3694, allocations: 1.844 MB / 0.5156 GB, free: 26.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000315/0.3697, allocations: 485 kB / 0.516 GB, free: 25.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008817/0.3706, allocations: 0.8337 MB / 0.5168 GB, free: 25.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.578e-05/0.3707, allocations: 357.7 kB / 0.5172 GB, free: 25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.3724, allocations: 1.307 MB / 0.5185 GB, free: 24.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00254/0.3749, allocations: 3.926 MB / 0.5223 GB, free: 20.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004235/0.3792, allocations: 5.71 MB / 0.5279 GB, free: 15.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.287e-05/0.3792, allocations: 26.22 kB / 0.5279 GB, free: 15.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.005574/0.3848, allocations: 5.06 MB / 0.5328 GB, free: 13.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.486e-05/0.3849, allocations: 44.94 kB / 0.5329 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008834/0.3857, allocations: 0.831 MB / 0.5337 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001027/0.3859, allocations: 121.5 kB / 0.5338 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002404/0.3883, allocations: 0.9535 MB / 0.5347 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.869e-05/0.3884, allocations: 181.4 kB / 0.5349 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002317/0.3907, allocations: 220.6 kB / 0.5351 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.3909, allocations: 263.9 kB / 0.5354 GB, free: 12.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * 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 (512): * Single equations (assignments): 506 * 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.001202/0.3921, allocations: 1.201 MB / 0.5366 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003211/0.3925, allocations: 210.5 kB / 0.5368 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003195/0.3928, allocations: 268.7 kB / 0.537 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008314/0.3936, allocations: 0.7906 MB / 0.5378 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.3936, allocations: 0 / 0.5378 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3937, allocations: 11.78 kB / 0.5378 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004422/0.3981, allocations: 3.337 MB / 0.541 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.3981, allocations: 7.828 kB / 0.5411 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006607/0.3988, allocations: 175.7 kB / 0.5412 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/0.3988, allocations: 8 kB / 0.5412 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.3988, allocations: 27.98 kB / 0.5413 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/0.3989, allocations: 11.94 kB / 0.5413 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3989, allocations: 4 kB / 0.5413 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.4003, allocations: 1.791 MB / 0.543 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005865/0.4009, allocations: 389.6 kB / 0.5434 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001908/0.4011, allocations: 24.73 kB / 0.5434 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007285/0.4018, allocations: 51.94 kB / 0.5435 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.601e-05/0.4019, allocations: 71.55 kB / 0.5435 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.648e-05/0.402, allocations: 35.98 kB / 0.5436 GB, free: 4.836 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00129/0.4033, allocations: 1.482 MB / 0.545 GB, free: 3.336 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4033, allocations: 0 / 0.545 GB, free: 3.336 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00241/0.4057, allocations: 0.5382 MB / 0.5455 GB, free: 2.801 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (87): * Single equations (assignments): 81 * 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.001752/0.4074, allocations: 2.454 MB / 0.5479 GB, free: 292 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003735/0.4112, allocations: 2.964 MB / 0.5508 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4112, allocations: 0 / 0.5508 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007308/0.4119, allocations: 0.6539 MB / 0.5515 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.4131, allocations: 180.4 kB / 0.5516 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02856/0.4417, allocations: 25.76 MB / 0.5768 GB, free: 15.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001801/0.4435, allocations: 1.921 MB / 0.5787 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002659/0.4462, allocations: 1.448 MB / 0.5801 GB, free: 11.91 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/0.4472, allocations: 0.8507 MB / 0.5809 GB, free: 11.06 MB / 430.1 MB Notification: Performance of SimCode: time 1.954e-06/0.4472, allocations: 4 kB / 0.5809 GB, free: 11.06 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05775/0.505, allocations: 33.43 MB / 0.6136 GB, free: 9.961 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.08, allocations: 15.94 kB / 0.6136 GB, free: 9.949 MB / 462.1 MB (rm -f VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_CircleRoads.pipe ; mkfifo VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_CircleRoads.pipe ; head -c 1048576 < VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_CircleRoads.pipe >> ../files/VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_CircleRoads.sim & python3 -m fmpy simulate --output-file VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_CircleRoads_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_CircleRoads.fmu > VehicleInterfaces_VehicleInterfaces.Roads.Examples.CheckFunctionDifferentiation_CircleRoads.pipe 2>&1)