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.0008817/0.0008819, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.0009792/0.0009793, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2352/0.2352, allocations: 9.111 MB / 300.2 MB, free: 2.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003802/0.0003806, allocations: 8 kB / 363.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1326, allocations: 52.42 MB / 415.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.2711/0.4038, allocations: 17.48 MB / 433 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.4144, allocations: 4.513 MB / 437.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004316/0.4187, allocations: 66.69 kB / 437.6 MB, free: 32.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002618/0.4214, allocations: 0.8133 MB / 438.4 MB, free: 32.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01003/0.4314, allocations: 2.871 MB / 441.3 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001517/0.433, allocations: 205.5 kB / 441.5 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003361/0.4364, allocations: 2.634 MB / 444.1 MB, free: 29.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001454/0.4378, allocations: 0.9446 MB / 445.1 MB, free: 29.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001231/0.4391, allocations: 0.7532 MB / 445.8 MB, free: 29.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.4408, allocations: 1.257 MB / 447.1 MB, free: 28.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000272/0.4411, allocations: 127 kB / 447.2 MB, free: 28.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001273/0.4424, allocations: 0.5924 MB / 447.8 MB, free: 28.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008805/0.4433, allocations: 1.065 MB / 448.9 MB, free: 28.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004637/0.4437, allocations: 0.6135 MB / 449.5 MB, free: 27.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002743/0.4465, allocations: 3.658 MB / 453.1 MB, free: 27.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.4465, allocations: 4 kB / 453.1 MB, free: 27.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.4465, allocations: 0 / 453.1 MB, free: 27.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.618e-05/0.4466, allocations: 0 / 453.1 MB, free: 27.04 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.005169/0.4517, allocations: 3.043 MB / 456.2 MB, free: 25.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.4518, allocations: 9.219 kB / 456.2 MB, free: 25.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005743/0.4576, allocations: 1.787 MB / 458 MB, free: 25.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.4597, allocations: 1.307 MB / 459.3 MB, free: 24.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.616e-05/0.4598, allocations: 152.8 kB / 459.4 MB, free: 24.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000322/0.4601, allocations: 204.3 kB / 459.6 MB, free: 24.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/0.4713, allocations: 7.541 MB / 467.2 MB, free: 20.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-05/0.4714, allocations: 21 kB / 467.2 MB, free: 20.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002942/0.4717, allocations: 95.92 kB / 467.3 MB, free: 20.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003272/0.475, allocations: 1.704 MB / 469 MB, free: 20.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01628/0.4913, allocations: 6.812 MB / 475.8 MB, free: 18.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03996/0.5313, allocations: 22.97 MB / 498.8 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003979/0.5353, allocations: 2.021 MB / 0.489 GB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001543/0.5369, allocations: 0.7622 MB / 0.4898 GB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00588/0.5428, allocations: 2.859 MB / 0.4926 GB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.5429, allocations: 39.56 kB / 0.4926 GB, free: 10.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 3.918e-06/0.5429, allocations: 0 / 0.4926 GB, free: 10.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.009699/0.5526, allocations: 4.006 MB / 0.4965 GB, free: 6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.5527, allocations: 68.41 kB / 0.4966 GB, free: 5.922 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004768/0.5574, allocations: 2.386 MB / 0.4989 GB, free: 3.496 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001476/0.5576, allocations: 41.7 kB / 0.499 GB, free: 3.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/0.5593, allocations: 2.003 MB / 0.5009 GB, free: 1.414 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005391/0.5598, allocations: 0.4896 MB / 0.5014 GB, free: 0.918 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002585/0.5601, allocations: 75.98 kB / 0.5015 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003315/0.5604, allocations: 465.8 kB / 0.5019 GB, free: 392 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.5626, allocations: 1.198 MB / 0.5031 GB, free: 15.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004095/0.5667, allocations: 3.25 MB / 0.5063 GB, free: 10.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003707/0.5705, allocations: 1.973 MB / 0.5082 GB, free: 8.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001009/0.5706, allocations: 20 kB / 0.5082 GB, free: 8.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.009029/0.5796, allocations: 4.532 MB / 0.5126 GB, free: 4.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.617e-05/0.5797, allocations: 38.47 kB / 0.5127 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/0.5799, allocations: 72 kB / 0.5127 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006891/0.5806, allocations: 245.2 kB / 0.513 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002566/0.5832, allocations: 0.8187 MB / 0.5138 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00352/0.5867, allocations: 2.649 MB / 0.5164 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003077/0.5898, allocations: 195.9 kB / 0.5165 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000547/0.5904, allocations: 220 kB / 0.5168 GB, free: 32 kB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003627/0.594, allocations: 1.5 MB / 0.5182 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005662/0.5946, allocations: 201.4 kB / 0.5184 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003854/0.5984, allocations: 1.806 MB / 0.5202 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001035/0.5986, allocations: 27.98 kB / 0.5202 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/0.5986, allocations: 4.062 kB / 0.5202 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.5986, allocations: 7.969 kB / 0.5202 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/0.6117, allocations: 5.196 MB / 0.5253 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/0.6118, allocations: 4 kB / 0.5253 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007571/0.6125, allocations: 176 kB / 0.5255 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003602/0.6129, allocations: 124.9 kB / 0.5256 GB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.812e-05/0.613, allocations: 31.92 kB / 0.5256 GB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002401/0.6154, allocations: 2.175 MB / 0.5277 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.6154, allocations: 0 / 0.5277 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004342/0.6198, allocations: 2.814 MB / 0.5305 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009856/0.6208, allocations: 426.4 kB / 0.5309 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002139/0.621, allocations: 23.98 kB / 0.5309 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006602/0.6217, allocations: 56 kB / 0.531 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.6218, allocations: 76.8 kB / 0.531 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.888e-05/0.6219, allocations: 36 kB / 0.5311 GB, free: 1.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002565/0.6245, allocations: 1.534 MB / 0.5326 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6245, allocations: 0 / 0.5326 GB, free: 15.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00309/0.6276, allocations: 0.6211 MB / 0.5332 GB, free: 14.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004202/0.628, allocations: 155.5 kB / 0.5333 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005094/0.6331, allocations: 2.91 MB / 0.5362 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.6332, allocations: 0 / 0.5362 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.6345, allocations: 0.9187 MB / 0.5371 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.6364, allocations: 364.9 kB / 0.5374 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/0.6478, allocations: 7.184 MB / 0.5444 GB, free: 3.266 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002767/0.6506, allocations: 2.466 MB / 0.5468 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002915/0.6535, allocations: 1.105 MB / 0.5479 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003862/0.6539, allocations: 155.4 kB / 0.5481 GB, free: 15.51 MB / 430.1 MB Notification: Performance of SimCode: time 1.473e-06/0.6539, allocations: 0 / 0.5481 GB, free: 15.51 MB / 430.1 MB Notification: Performance of Templates: time 0.04853/0.7025, allocations: 22.05 MB / 0.5696 GB, free: 9.586 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)