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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-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: translateModel(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag") translateModel(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001358, 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.001654/0.001655, allocations: 191.2 kB / 16.14 MB, free: 6.703 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.504/1.504, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1536/0.1536, allocations: 9.119 MB / 299.1 MB, free: 1.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 55.91 kB / 361.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1032, allocations: 51.45 MB / 412.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.2359/0.3391, allocations: 19.42 MB / 432.1 MB, free: 33.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009743/0.3489, allocations: 4.751 MB / 436.9 MB, free: 31.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004516/0.3535, allocations: 67.97 kB / 436.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001381/0.355, allocations: 299 kB / 437.2 MB, free: 31.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004097/0.3591, allocations: 1.13 MB / 438.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008202/0.3599, allocations: 236 kB / 438.6 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004185/0.3641, allocations: 3.307 MB / 441.9 MB, free: 29.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001725/0.3659, allocations: 1.023 MB / 442.9 MB, free: 29.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001408/0.3673, allocations: 0.7487 MB / 443.7 MB, free: 28.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001894/0.3692, allocations: 1.309 MB / 445 MB, free: 28.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005224/0.3698, allocations: 145.6 kB / 445.1 MB, free: 28.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.3713, allocations: 0.6998 MB / 445.8 MB, free: 28.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.3724, allocations: 1.099 MB / 446.9 MB, free: 27.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001693/0.3741, allocations: 1.439 MB / 448.4 MB, free: 26.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004289/0.3784, allocations: 4.575 MB / 452.9 MB, free: 25.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3785, allocations: 0 / 452.9 MB, free: 25.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3785, allocations: 0 / 452.9 MB, free: 25.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001219/0.3786, allocations: 0 / 452.9 MB, free: 25.12 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.007259/0.3859, allocations: 3.621 MB / 456.6 MB, free: 23.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3859, allocations: 8.75 kB / 456.6 MB, free: 23.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006097/0.392, allocations: 1.752 MB / 458.3 MB, free: 22.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002356/0.3944, allocations: 1.318 MB / 459.6 MB, free: 22.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.3945, allocations: 156.8 kB / 459.8 MB, free: 21.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004795/0.395, allocations: 201.9 kB / 460 MB, free: 21.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01117/0.4062, allocations: 7.558 MB / 467.6 MB, free: 18.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.389e-05/0.4063, allocations: 20.8 kB / 467.6 MB, free: 18.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003481/0.4067, allocations: 96.59 kB / 467.7 MB, free: 18.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002883/0.4096, allocations: 1.709 MB / 469.4 MB, free: 18.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.015/0.4246, allocations: 6.833 MB / 476.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03726/0.4619, allocations: 22.98 MB / 499.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003906/0.4658, allocations: 2.013 MB / 0.4895 GB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001408/0.4673, allocations: 0.7662 MB / 0.4902 GB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005093/0.4724, allocations: 2.848 MB / 0.493 GB, free: 7.816 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.4725, allocations: 47.55 kB / 0.493 GB, free: 7.762 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 3.717e-06/0.4725, allocations: 0 / 0.493 GB, free: 7.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.008725/0.4812, allocations: 4.029 MB / 0.497 GB, free: 3.719 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.4813, allocations: 60.41 kB / 0.497 GB, free: 3.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/0.4854, allocations: 2.405 MB / 0.4994 GB, free: 1.203 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/0.4856, allocations: 45.7 kB / 0.4994 GB, free: 1.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001486/0.4871, allocations: 2 MB / 0.5014 GB, free: 15.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006035/0.4878, allocations: 497.4 kB / 0.5018 GB, free: 14.63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001431/0.4892, allocations: 0.7302 MB / 0.5026 GB, free: 13.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4893, allocations: 305.1 kB / 0.5028 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002187/0.4915, allocations: 1.217 MB / 0.504 GB, free: 12.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003624/0.4952, allocations: 3.265 MB / 0.5072 GB, free: 8.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008466/0.5037, allocations: 5.396 MB / 0.5125 GB, free: 1.691 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.923e-05/0.5038, allocations: 20 kB / 0.5125 GB, free: 1.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.00906/0.5129, allocations: 4.563 MB / 0.517 GB, free: 13.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.538e-05/0.513, allocations: 36 kB / 0.517 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000113/0.5131, allocations: 72.09 kB / 0.5171 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006158/0.5137, allocations: 236.7 kB / 0.5173 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00275/0.5165, allocations: 0.8071 MB / 0.5181 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003282/0.5198, allocations: 2.665 MB / 0.5207 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002667/0.5225, allocations: 183.9 kB / 0.5209 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005331/0.523, allocations: 224 kB / 0.5211 GB, free: 8.758 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 (436): * Single equations (assignments): 431 * 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.002791/0.5258, allocations: 1.504 MB / 0.5225 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004175/0.5263, allocations: 201.4 kB / 0.5227 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00336/0.5296, allocations: 1.814 MB / 0.5245 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000106/0.5297, allocations: 27.97 kB / 0.5245 GB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.5298, allocations: 7.938 kB / 0.5245 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.5298, allocations: 3.984 kB / 0.5245 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.5403, allocations: 5.207 MB / 0.5296 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.5403, allocations: 3.938 kB / 0.5296 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008541/0.5412, allocations: 179.7 kB / 0.5298 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004026/0.5416, allocations: 116.8 kB / 0.5299 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.5417, allocations: 27.98 kB / 0.5299 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002482/0.5442, allocations: 2.187 MB / 0.5321 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.5442, allocations: 4 kB / 0.5321 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004706/0.5489, allocations: 2.833 MB / 0.5348 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009789/0.55, allocations: 406.5 kB / 0.5352 GB, free: 9.895 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004335/0.5504, allocations: 24 kB / 0.5353 GB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009171/0.5513, allocations: 51.94 kB / 0.5353 GB, free: 9.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.5515, allocations: 72.78 kB / 0.5354 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.5517, allocations: 43.98 kB / 0.5354 GB, free: 9.707 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002853/0.5545, allocations: 1.546 MB / 0.5369 GB, free: 8.141 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5545, allocations: 0 / 0.5369 GB, free: 8.141 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003251/0.5578, allocations: 0.6211 MB / 0.5375 GB, free: 7.52 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 (99): * Single equations (assignments): 94 * 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.0004413/0.5582, allocations: 156.2 kB / 0.5377 GB, free: 7.363 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005201/0.5635, allocations: 2.933 MB / 0.5405 GB, free: 4.438 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.5635, allocations: 0 / 0.5405 GB, free: 4.438 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.565, allocations: 0.9192 MB / 0.5414 GB, free: 3.504 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002434/0.5675, allocations: 348.5 kB / 0.5418 GB, free: 3.168 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/0.5801, allocations: 7.424 MB / 0.549 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003181/0.5833, allocations: 2.472 MB / 0.5514 GB, free: 9.195 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002883/0.5862, allocations: 1.093 MB / 0.5525 GB, free: 8.098 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005353/0.5868, allocations: 155.4 kB / 0.5527 GB, free: 7.945 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5868, allocations: 3.938 kB / 0.5527 GB, free: 7.941 MB / 430.1 MB Notification: Performance of Templates: time 0.04574/0.6325, allocations: 22.77 MB / 0.5749 GB, free: 1.293 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.makefile (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 & ./PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1)