Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag",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.001352/0.001352, 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.001602/0.001602, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.324/1.324, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1416/0.1416, allocations: 9.094 MB / 299 MB, free: 1.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 59.89 kB / 361.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09154, allocations: 51.44 MB / 412.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.1908/0.2824, allocations: 19.42 MB / 432.2 MB, free: 33.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008997/0.2914, allocations: 4.75 MB / 437 MB, free: 31.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003372/0.2949, allocations: 68.12 kB / 437 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008133/0.2957, allocations: 295.8 kB / 437.3 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002246/0.298, allocations: 1.136 MB / 438.4 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004627/0.2985, allocations: 238.4 kB / 438.7 MB, free: 30.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002131/0.3006, allocations: 3.293 MB / 442 MB, free: 29.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009372/0.3015, allocations: 1.032 MB / 443 MB, free: 29.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006207/0.3022, allocations: 0.7479 MB / 443.8 MB, free: 28.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.3033, allocations: 1.311 MB / 445.1 MB, free: 28.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002221/0.3035, allocations: 140.8 kB / 445.2 MB, free: 28.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.3045, allocations: 0.698 MB / 445.9 MB, free: 28.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007247/0.3052, allocations: 1.104 MB / 447 MB, free: 27.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008666/0.3061, allocations: 1.44 MB / 448.4 MB, free: 26.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002988/0.3091, allocations: 4.579 MB / 453 MB, free: 25.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3091, allocations: 0 / 453 MB, free: 25.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3091, allocations: 3.219 kB / 453 MB, free: 25.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.85e-05/0.3092, allocations: 0 / 453 MB, free: 25.07 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: 1104 * Number of variables: 1104 Notification: Performance of Generate backend data structure: time 0.005839/0.3151, allocations: 3.622 MB / 456.6 MB, free: 23.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.3151, allocations: 9.688 kB / 456.7 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005346/0.3157, allocations: 0.5206 MB / 457.2 MB, free: 22.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005808/0.3215, allocations: 1.765 MB / 458.9 MB, free: 22.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/0.3239, allocations: 1.32 MB / 460.3 MB, free: 21.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.324, allocations: 153.8 kB / 460.4 MB, free: 21.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003682/0.3244, allocations: 207.1 kB / 460.6 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009359/0.3337, allocations: 7.552 MB / 468.2 MB, free: 18.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.107e-05/0.3338, allocations: 22.91 kB / 468.2 MB, free: 18.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002478/0.3341, allocations: 92.47 kB / 468.3 MB, free: 18.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00268/0.3368, allocations: 1.707 MB / 470 MB, free: 17.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01075/0.3475, allocations: 6.838 MB / 476.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02428/0.3718, allocations: 22.98 MB / 499.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003602/0.3754, allocations: 2.151 MB / 0.4902 GB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.3766, allocations: 0.7383 MB / 0.4909 GB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005215/0.3818, allocations: 3.262 MB / 0.4941 GB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.3819, allocations: 43.56 kB / 0.4941 GB, free: 6.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=113): time 2.515e-06/0.3819, allocations: 0 / 0.4941 GB, free: 6.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.007505/0.3894, allocations: 3.939 MB / 0.498 GB, free: 2.598 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.3895, allocations: 64.41 kB / 0.498 GB, free: 2.523 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00302/0.3926, allocations: 2.437 MB / 0.5004 GB, free: 48 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.643e-05/0.3926, allocations: 41.7 kB / 0.5005 GB, free: 0 / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001245/0.3939, allocations: 2.003 MB / 0.5024 GB, free: 13.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000338/0.3942, allocations: 485.5 kB / 0.5029 GB, free: 13.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008885/0.3951, allocations: 0.7223 MB / 0.5036 GB, free: 12.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3953, allocations: 301.1 kB / 0.5039 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001857/0.3971, allocations: 1.198 MB / 0.505 GB, free: 11.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003405/0.4006, allocations: 3.245 MB / 0.5082 GB, free: 7.004 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007388/0.408, allocations: 5.31 MB / 0.5134 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.129e-05/0.408, allocations: 20 kB / 0.5134 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.007269/0.4153, allocations: 4.503 MB / 0.5178 GB, free: 12.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.257e-05/0.4154, allocations: 44.02 kB / 0.5179 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.874e-05/0.4154, allocations: 72 kB / 0.5179 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005423/0.416, allocations: 234 kB / 0.5182 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002186/0.4182, allocations: 0.7954 MB / 0.5189 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00289/0.4211, allocations: 2.662 MB / 0.5215 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/0.4232, allocations: 187.8 kB / 0.5217 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002622/0.4235, allocations: 216 kB / 0.5219 GB, free: 7.824 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: revolute.w:VARIABLE(start = -5.0 unit = "rad/s" fixed = true stateSelect=StateSelect.always ) "Angular velocity" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 328 * Number of states: 0 () * Number of discrete variables: 9 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (431): * Single equations (assignments): 426 * 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): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002062/0.4255, allocations: 1.501 MB / 0.5234 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.4258, allocations: 205.4 kB / 0.5236 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002782/0.4286, allocations: 1.767 MB / 0.5253 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.851e-05/0.4287, allocations: 23.98 kB / 0.5253 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.4287, allocations: 4 kB / 0.5253 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.4287, allocations: 10.36 kB / 0.5253 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007616/0.4363, allocations: 5.112 MB / 0.5303 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.4364, allocations: 4 kB / 0.5303 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000694/0.4371, allocations: 164.1 kB / 0.5305 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003594/0.4374, allocations: 128.6 kB / 0.5306 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.547e-05/0.4375, allocations: 24.28 kB / 0.5306 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002189/0.4397, allocations: 2.181 MB / 0.5328 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/0.4397, allocations: 12.05 kB / 0.5328 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003697/0.4434, allocations: 2.731 MB / 0.5354 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006397/0.4441, allocations: 406.5 kB / 0.5358 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.4443, allocations: 23.97 kB / 0.5359 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000686/0.445, allocations: 51.94 kB / 0.5359 GB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.4451, allocations: 72.84 kB / 0.536 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.198e-05/0.4452, allocations: 40.06 kB / 0.536 GB, free: 9.027 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002087/0.4473, allocations: 1.57 MB / 0.5375 GB, free: 7.438 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4473, allocations: 0 / 0.5375 GB, free: 7.438 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002403/0.4497, allocations: 0.6133 MB / 0.5381 GB, free: 6.824 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (revolute.phi,revolute.w) * 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 (94): * Single equations (assignments): 89 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004106/0.4539, allocations: 3.368 MB / 0.5414 GB, free: 3.402 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004317/0.4582, allocations: 2.882 MB / 0.5442 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4582, allocations: 3.938 kB / 0.5443 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.4594, allocations: 0.8803 MB / 0.5451 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.4612, allocations: 356.9 kB / 0.5455 GB, free: 15.28 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03986/0.5011, allocations: 28.62 MB / 0.5734 GB, free: 15.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002396/0.5035, allocations: 2.46 MB / 0.5758 GB, free: 12.72 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002544/0.5061, allocations: 1.097 MB / 0.5769 GB, free: 11.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001434/0.5075, allocations: 1.213 MB / 0.5781 GB, free: 10.41 MB / 462.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5075, allocations: 0 / 0.5781 GB, free: 10.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1973/0.7048, allocations: 42.49 MB / 0.6196 GB, free: 136.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001288/0.7049, allocations: 223.3 kB / 0.6198 GB, free: 136.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/3.263, allocations: 1.156 kB / 0.6198 GB, free: 136.6 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1)