Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents") translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001402/0.001402, allocations: 180.3 kB / 7.651 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.646/1.646, allocations: 194.3 MB / 202.4 MB, free: 8.547 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001664/0.001664, allocations: 118.9 kB / 247.4 MB, free: 6.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2109/0.2109, allocations: 39.95 MB / 332.2 MB, free: 4.77 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.209e-05/1.21e-05, allocations: 0 / 393.3 MB, free: 75.55 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1099, allocations: 54.88 MB / 448.2 MB, free: 20.67 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3547/0.4647, allocations: 98.86 MB / 0.5342 GB, free: 1.406 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001755/0.4649, allocations: 70.14 kB / 0.5343 GB, free: 1.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1351/0.6001, allocations: 47.57 MB / 0.5807 GB, free: 10.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.6001, allocations: 0 / 0.5807 GB, free: 10.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001515/0.6003, allocations: 48 kB / 0.5808 GB, free: 10 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.007927/0.6082, allocations: 2.349 MB / 0.5831 GB, free: 7.699 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.6083, allocations: 8.031 kB / 0.5831 GB, free: 7.691 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001654/0.6099, allocations: 300.8 kB / 0.5834 GB, free: 7.395 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002814/0.6127, allocations: 0.9707 MB / 0.5843 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008741/0.6136, allocations: 392.1 kB / 0.5847 GB, free: 5.938 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008102/0.6145, allocations: 151.7 kB / 0.5848 GB, free: 5.789 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00471/0.6192, allocations: 2.078 MB / 0.5869 GB, free: 3.703 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004721/0.6239, allocations: 2.036 MB / 0.5889 GB, free: 1.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001255/0.6241, allocations: 31.7 kB / 0.5889 GB, free: 1.559 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002006/0.6243, allocations: 3.953 kB / 0.5889 GB, free: 1.555 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.155e-05/0.6243, allocations: 52 kB / 0.5889 GB, free: 1.504 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01452/0.6389, allocations: 6.252 MB / 0.5951 GB, free: 11.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003374/0.6423, allocations: 2.077 MB / 0.5971 GB, free: 8.965 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001891/0.6442, allocations: 1.11 MB / 0.5982 GB, free: 7.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002846/0.6445, allocations: 123.4 kB / 0.5983 GB, free: 7.703 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.156e-05/0.6446, allocations: 72.59 kB / 0.5984 GB, free: 7.621 MB / 410.7 MB Notification: Performance of pre-optimization done (n=280): time 5.26e-06/0.6446, allocations: 0 / 0.5984 GB, free: 7.621 MB / 410.7 MB Notification: Performance of matching and sorting (n=338): time 0.02029/0.6649, allocations: 10.06 MB / 0.6082 GB, free: 13.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001668/0.6651, allocations: 278.1 kB / 0.6084 GB, free: 12.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001358/0.6665, allocations: 0.7235 MB / 0.6092 GB, free: 12.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005307/0.667, allocations: 45.69 kB / 0.6092 GB, free: 11.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007646/0.6678, allocations: 0.694 MB / 0.6099 GB, free: 11.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001504/0.6693, allocations: 1.093 MB / 0.6109 GB, free: 10.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004183/0.6698, allocations: 4 kB / 0.6109 GB, free: 10.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002605/0.67, allocations: 424.6 kB / 0.6113 GB, free: 9.734 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001985/0.672, allocations: 0.9593 MB / 0.6123 GB, free: 8.773 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002247/0.6743, allocations: 1.343 MB / 0.6136 GB, free: 7.305 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002376/0.6767, allocations: 0.9798 MB / 0.6146 GB, free: 6.328 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-05/0.6767, allocations: 4 kB / 0.6146 GB, free: 6.324 MB / 426.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.006351/0.6831, allocations: 3.02 MB / 0.6175 GB, free: 3.285 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.6831, allocations: 11.95 kB / 0.6175 GB, free: 3.273 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.981e-05/0.6832, allocations: 16.11 kB / 0.6175 GB, free: 3.258 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002301/0.6855, allocations: 1.004 MB / 0.6185 GB, free: 2.242 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002946/0.6884, allocations: 0.749 MB / 0.6192 GB, free: 1.492 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008721/0.6972, allocations: 7.294 MB / 0.6264 GB, free: 9.891 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002582/0.6998, allocations: 231.8 kB / 0.6266 GB, free: 9.664 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007113/0.7005, allocations: 128 kB / 0.6267 GB, free: 9.539 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001135/0.7017, allocations: 191.5 kB / 0.6269 GB, free: 9.348 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008879/0.7026, allocations: 205.5 kB / 0.6271 GB, free: 9.145 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004888/0.7075, allocations: 2.153 MB / 0.6292 GB, free: 6.957 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.318e-05/0.7075, allocations: 36 kB / 0.6292 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/0.7076, allocations: 4 kB / 0.6292 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.402e-05/0.7076, allocations: 15.94 kB / 0.6292 GB, free: 6.902 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/0.7221, allocations: 6.886 MB / 0.636 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.239e-05/0.7221, allocations: 8 kB / 0.636 GB, free: 15.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003212/0.7254, allocations: 0.7374 MB / 0.6367 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002259/0.7276, allocations: 0.9894 MB / 0.6377 GB, free: 14.07 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003698/0.728, allocations: 59.91 kB / 0.6377 GB, free: 14.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/0.7413, allocations: 9.798 MB / 0.6473 GB, free: 3.676 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-05/0.7414, allocations: 15.94 kB / 0.6473 GB, free: 3.66 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01557/0.7569, allocations: 5.261 MB / 0.6524 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001953/0.7589, allocations: 0.5139 MB / 0.6529 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006893/0.7596, allocations: 35.98 kB / 0.653 GB, free: 13.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002923/0.7626, allocations: 243.8 kB / 0.6532 GB, free: 13.21 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001554/0.7642, allocations: 457.1 kB / 0.6536 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005103/0.7647, allocations: 123.9 kB / 0.6538 GB, free: 12.64 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001353/0.7661, allocations: 0.5468 MB / 0.6543 GB, free: 12.08 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7661, allocations: 4 kB / 0.6543 GB, free: 12.08 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004739/0.7709, allocations: 0.6093 MB / 0.6549 GB, free: 11.47 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009688/0.7719, allocations: 223.5 kB / 0.6551 GB, free: 11.24 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007973/0.7799, allocations: 2.893 MB / 0.6579 GB, free: 8.305 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/0.7799, allocations: 0.5625 kB / 0.6579 GB, free: 8.305 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007958/0.7879, allocations: 2.508 MB / 0.6604 GB, free: 5.754 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003337/0.7913, allocations: 242 kB / 0.6606 GB, free: 5.52 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.338/1.129, allocations: 5.506 MB / 0.666 GB, free: 134.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002096/1.131, allocations: 1.59 MB / 0.6675 GB, free: 133.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002359/1.134, allocations: 297.8 kB / 0.6678 GB, free: 133.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/1.135, allocations: 181.3 kB / 0.668 GB, free: 133.7 MB / 474.7 MB Notification: Performance of SimCode: time 9.92e-07/1.135, allocations: 3.688 kB / 0.668 GB, free: 133.7 MB / 474.7 MB Notification: Performance of Templates: time 0.08626/1.221, allocations: 34.14 MB / 0.7013 GB, free: 130.2 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.pipe 2>&1)