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.001197/0.001197, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001583/0.001583, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.347/1.347, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1668/0.1668, allocations: 9.109 MB / 299.2 MB, free: 1.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 67.91 kB / 361.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1078, allocations: 51.42 MB / 412.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.211/0.3188, allocations: 19.42 MB / 432.3 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.329, allocations: 4.726 MB / 437 MB, free: 31.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00445/0.3335, allocations: 68.28 kB / 437.1 MB, free: 31.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.3347, allocations: 284.2 kB / 437.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003141/0.3379, allocations: 1.134 MB / 438.5 MB, free: 31.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006545/0.3386, allocations: 241.2 kB / 438.7 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002615/0.3412, allocations: 2.439 MB / 441.2 MB, free: 29.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001811/0.3431, allocations: 1.169 MB / 442.4 MB, free: 29.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001365/0.3444, allocations: 0.8851 MB / 443.2 MB, free: 28.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001774/0.3462, allocations: 1.413 MB / 444.7 MB, free: 28.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006414/0.3469, allocations: 249.3 kB / 444.9 MB, free: 28.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001439/0.3483, allocations: 0.7784 MB / 445.7 MB, free: 28.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001295/0.3496, allocations: 1.208 MB / 446.9 MB, free: 27.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001651/0.3513, allocations: 1.555 MB / 448.4 MB, free: 26.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003507/0.3548, allocations: 4.729 MB / 453.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3548, allocations: 0 / 453.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3549, allocations: 0 / 453.2 MB, free: 24.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.485e-05/0.3549, allocations: 0 / 453.2 MB, free: 24.72 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.005617/0.3605, allocations: 3.628 MB / 456.8 MB, free: 22.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3606, allocations: 12.41 kB / 456.8 MB, free: 22.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005837/0.3664, allocations: 1.749 MB / 458.6 MB, free: 22.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.3683, allocations: 1.323 MB / 459.9 MB, free: 21.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.243e-05/0.3684, allocations: 149.5 kB / 460 MB, free: 21.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003508/0.3687, allocations: 201.5 kB / 460.2 MB, free: 21.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01025/0.379, allocations: 7.555 MB / 467.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-05/0.3791, allocations: 20.38 kB / 467.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002784/0.3794, allocations: 98.03 kB / 467.9 MB, free: 18.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002915/0.3823, allocations: 1.711 MB / 469.6 MB, free: 17.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01362/0.3959, allocations: 6.827 MB / 476.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03079/0.4268, allocations: 22.98 MB / 499.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003562/0.4304, allocations: 2.012 MB / 0.4897 GB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.4315, allocations: 0.7702 MB / 0.4904 GB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004422/0.436, allocations: 2.852 MB / 0.4932 GB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.436, allocations: 43.56 kB / 0.4932 GB, free: 7.555 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 2.786e-06/0.436, allocations: 0 / 0.4932 GB, free: 7.555 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.007876/0.4439, allocations: 4.018 MB / 0.4972 GB, free: 3.523 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.444, allocations: 64.41 kB / 0.4972 GB, free: 3.449 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003313/0.4473, allocations: 2.409 MB / 0.4996 GB, free: 1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.563e-05/0.4474, allocations: 45.69 kB / 0.4996 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.4487, allocations: 1.996 MB / 0.5016 GB, free: 14.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003933/0.4491, allocations: 0.4897 MB / 0.5021 GB, free: 14.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009366/0.45, allocations: 0.7341 MB / 0.5028 GB, free: 13.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.4501, allocations: 301.1 kB / 0.5031 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001821/0.452, allocations: 1.209 MB / 0.5042 GB, free: 12.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003311/0.4553, allocations: 3.269 MB / 0.5074 GB, free: 7.895 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007895/0.4632, allocations: 5.406 MB / 0.5127 GB, free: 1.477 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-05/0.4633, allocations: 20 kB / 0.5127 GB, free: 1.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.008066/0.4713, allocations: 4.568 MB / 0.5172 GB, free: 12.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.865e-05/0.4714, allocations: 36 kB / 0.5172 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.787e-05/0.4715, allocations: 72 kB / 0.5173 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000606/0.4721, allocations: 237.4 kB / 0.5175 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002431/0.4746, allocations: 0.8111 MB / 0.5183 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003447/0.478, allocations: 2.893 MB / 0.5211 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002729/0.4808, allocations: 191.8 kB / 0.5213 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003547/0.4811, allocations: 216 kB / 0.5215 GB, free: 8.301 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.002693/0.4838, allocations: 1.501 MB / 0.523 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003492/0.4842, allocations: 209.3 kB / 0.5232 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003064/0.4873, allocations: 1.814 MB / 0.525 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001027/0.4874, allocations: 27.98 kB / 0.525 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.4874, allocations: 7.938 kB / 0.525 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.4874, allocations: 7.969 kB / 0.525 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009047/0.4965, allocations: 5.199 MB / 0.5301 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.4965, allocations: 4 kB / 0.5301 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000744/0.4973, allocations: 179.8 kB / 0.5303 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003621/0.4976, allocations: 120.7 kB / 0.5304 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.448e-05/0.4977, allocations: 32.05 kB / 0.5304 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002488/0.5002, allocations: 2.408 MB / 0.5328 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5002, allocations: 3.938 kB / 0.5328 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004012/0.5043, allocations: 2.825 MB / 0.5355 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007958/0.5051, allocations: 412.8 kB / 0.5359 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/0.5053, allocations: 20 kB / 0.5359 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007326/0.506, allocations: 59.94 kB / 0.536 GB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.5062, allocations: 76.84 kB / 0.5361 GB, free: 9.055 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.134e-05/0.5063, allocations: 35.98 kB / 0.5361 GB, free: 9.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002276/0.5086, allocations: 1.546 MB / 0.5376 GB, free: 7.453 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5086, allocations: 0 / 0.5376 GB, free: 7.453 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002553/0.5111, allocations: 0.625 MB / 0.5382 GB, free: 6.828 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.0003197/0.5115, allocations: 152.5 kB / 0.5384 GB, free: 6.672 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006342/0.5178, allocations: 3.969 MB / 0.5422 GB, free: 2.711 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5178, allocations: 0 / 0.5422 GB, free: 2.711 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.5191, allocations: 0.9217 MB / 0.5431 GB, free: 1.773 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.521, allocations: 398.8 kB / 0.5435 GB, free: 1.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.5318, allocations: 7.419 MB / 0.5508 GB, free: 9.941 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/0.5345, allocations: 2.46 MB / 0.5532 GB, free: 7.449 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002961/0.5374, allocations: 1.105 MB / 0.5542 GB, free: 6.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004244/0.5379, allocations: 155.4 kB / 0.5544 GB, free: 6.188 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5379, allocations: 0 / 0.5544 GB, free: 6.188 MB / 430.1 MB Notification: Performance of Templates: time 0.2205/0.7584, allocations: 23.56 MB / 0.5774 GB, free: 125.1 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)