Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents") translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001214/0.001214, allocations: 157.5 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.49/1.49, allocations: 170.7 MB / 178.7 MB, free: 7.039 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001602/0.001602, allocations: 99.42 kB / 218 MB, free: 15.34 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2906/0.2906, allocations: 37.97 MB / 295.1 MB, free: 2.094 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.431e-05/1.405e-05, allocations: 4 kB / 350 MB, free: 32.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4, allocations: 48.69 MB / 398.7 MB, free: 6.059 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1469/0.5469, allocations: 91.22 MB / 489.9 MB, free: 7.875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.5472, allocations: 63.97 kB / 490 MB, free: 7.812 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1293/0.6765, allocations: 44.06 MB / 0.5215 GB, free: 11.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.6766, allocations: 4 kB / 0.5215 GB, free: 11.65 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001452/0.6767, allocations: 47.94 kB / 0.5216 GB, free: 11.61 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: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.006859/0.6836, allocations: 2.2 MB / 0.5237 GB, free: 9.352 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.6836, allocations: 12.02 kB / 0.5237 GB, free: 9.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001403/0.6851, allocations: 277.1 kB / 0.524 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002194/0.6873, allocations: 0.9391 MB / 0.5249 GB, free: 8.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006745/0.688, allocations: 338.1 kB / 0.5253 GB, free: 7.699 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005286/0.6885, allocations: 139.8 kB / 0.5254 GB, free: 7.562 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004129/0.6926, allocations: 2.027 MB / 0.5274 GB, free: 5.527 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00388/0.6965, allocations: 1.934 MB / 0.5293 GB, free: 3.523 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.6967, allocations: 27.7 kB / 0.5293 GB, free: 3.496 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001852/0.6969, allocations: 8 kB / 0.5293 GB, free: 3.488 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.507e-05/0.6969, allocations: 48 kB / 0.5293 GB, free: 3.441 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01206/0.709, allocations: 5.806 MB / 0.535 GB, free: 13.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003405/0.7124, allocations: 1.997 MB / 0.537 GB, free: 11.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001734/0.7142, allocations: 1.05 MB / 0.538 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001744/0.7144, allocations: 38.3 kB / 0.538 GB, free: 10.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.332e-05/0.7145, allocations: 76.59 kB / 0.5381 GB, free: 10.26 MB / 410.7 MB Notification: Performance of pre-optimization done (n=260): time 5.31e-06/0.7145, allocations: 0 / 0.5381 GB, free: 10.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=315): time 0.01837/0.7328, allocations: 9.269 MB / 0.5471 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.733, allocations: 243.7 kB / 0.5474 GB, free: 324 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2599/0.9929, allocations: 0.7268 MB / 0.5481 GB, free: 110.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008907/0.9938, allocations: 44.97 kB / 0.5481 GB, free: 110.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007255/0.9946, allocations: 0.6529 MB / 0.5488 GB, free: 110.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001099/0.9957, allocations: 1.021 MB / 0.5498 GB, free: 110 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.9958, allocations: 2.516 kB / 0.5498 GB, free: 110 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.996, allocations: 418.4 kB / 0.5502 GB, free: 109.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/0.9977, allocations: 0.9251 MB / 0.5511 GB, free: 109.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001947/0.9997, allocations: 1.295 MB / 0.5523 GB, free: 109.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002027/1.002, allocations: 0.9517 MB / 0.5533 GB, free: 109.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/1.002, allocations: 2.688 kB / 0.5533 GB, free: 109.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.006192/1.008, allocations: 3.131 MB / 0.5563 GB, free: 109.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/1.008, allocations: 6.875 kB / 0.5563 GB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.287e-05/1.008, allocations: 12.05 kB / 0.5563 GB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003292/1.011, allocations: 1.195 MB / 0.5575 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00294/1.014, allocations: 0.6682 MB / 0.5582 GB, free: 109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008991/1.023, allocations: 7.389 MB / 0.5654 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002869/1.026, allocations: 220.8 kB / 0.5656 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003832/1.027, allocations: 121.2 kB / 0.5657 GB, free: 104.8 MB / 410.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: 35 * 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,bearingFriction.free,$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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 308 * 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: 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.0007798/1.027, allocations: 197.5 kB / 0.5659 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004844/1.028, allocations: 190.1 kB / 0.5661 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00122/1.029, allocations: 0.528 MB / 0.5666 GB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/1.029, allocations: 34.2 kB / 0.5666 GB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.949e-05/1.029, allocations: 4.016 kB / 0.5666 GB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.982e-05/1.029, allocations: 16.31 kB / 0.5666 GB, free: 104.5 MB / 410.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.01284/1.042, allocations: 6.664 MB / 0.5731 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.032e-05/1.042, allocations: 9.328 kB / 0.5732 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002655/1.045, allocations: 0.6291 MB / 0.5738 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002125/1.047, allocations: 1.183 MB / 0.5749 GB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002327/1.047, allocations: 58.69 kB / 0.575 GB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009374/1.057, allocations: 9.886 MB / 0.5846 GB, free: 93.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.476e-05/1.057, allocations: 12.22 kB / 0.5846 GB, free: 93.49 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008188/1.065, allocations: 5.139 MB / 0.5897 GB, free: 90.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/1.066, allocations: 0.4951 MB / 0.5901 GB, free: 90.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003177/1.066, allocations: 39.2 kB / 0.5902 GB, free: 90.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001718/1.068, allocations: 212.3 kB / 0.5904 GB, free: 90.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007449/1.069, allocations: 425.6 kB / 0.5908 GB, free: 90.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002045/1.069, allocations: 124.9 kB / 0.5909 GB, free: 90.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007036/1.07, allocations: 0.5435 MB / 0.5914 GB, free: 89.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.07, allocations: 3.562 kB / 0.5914 GB, free: 89.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002888/1.073, allocations: 0.6038 MB / 0.592 GB, free: 89.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 27 (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 (250): * Single equations (assignments): 243 * 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.0004765/1.073, allocations: 222.5 kB / 0.5922 GB, free: 89.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004094/1.077, allocations: 2.738 MB / 0.5949 GB, free: 88.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/1.077, allocations: 0 / 0.5949 GB, free: 88.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003659/1.081, allocations: 2.346 MB / 0.5972 GB, free: 87.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/1.083, allocations: 210.6 kB / 0.5974 GB, free: 87.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008372/1.091, allocations: 5.09 MB / 0.6024 GB, free: 84.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008781/1.092, allocations: 1.546 MB / 0.6039 GB, free: 83.84 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001952/1.094, allocations: 285 kB / 0.6042 GB, free: 83.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005861/1.095, allocations: 167.8 kB / 0.6043 GB, free: 83.76 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/1.095, allocations: 0 / 0.6043 GB, free: 83.76 MB / 410.7 MB Notification: Performance of Templates: time 0.0444/1.139, allocations: 32.35 MB / 0.6359 GB, free: 60.37 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe 2>&1)