Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.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.TestBearingConversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion") translateModel(ModelicaTest.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009712/0.009712, allocations: 166.5 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.318/1.318, allocations: 170.8 MB / 186.6 MB, free: 1.125 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: 110.6 kB / 226.2 MB, free: 10.1 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.4872/0.4872, allocations: 38.05 MB / 303.7 MB, free: 42.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005306/0.0005307, allocations: 15.98 kB / 362.9 MB, free: 5.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1314, allocations: 48.7 MB / 411.6 MB, free: 4.824 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3655/0.497, allocations: 90.08 MB / 0.4899 GB, free: 13.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.4973, allocations: 70.28 kB / 0.49 GB, free: 13.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1938/0.6911, allocations: 63.85 MB / 0.5523 GB, free: 3.133 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.6912, allocations: 0 / 0.5523 GB, free: 3.133 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001748/0.6914, allocations: 67.98 kB / 0.5524 GB, free: 3.066 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: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01077/0.7021, allocations: 3.154 MB / 0.5555 GB, free: 15.85 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.7022, allocations: 8.031 kB / 0.5555 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002516/0.7047, allocations: 403.9 kB / 0.5558 GB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004002/0.7087, allocations: 1.319 MB / 0.5571 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009327/0.7097, allocations: 0.5845 MB / 0.5577 GB, free: 13.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009335/0.7106, allocations: 311.6 kB / 0.558 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007246/0.7179, allocations: 3.39 MB / 0.5613 GB, free: 9.613 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001841/0.7181, allocations: 39.55 kB / 0.5614 GB, free: 9.574 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004312/0.7186, allocations: 123.9 kB / 0.5615 GB, free: 9.453 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.903e-05/0.7187, allocations: 72 kB / 0.5615 GB, free: 9.383 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01166/0.7303, allocations: 3.559 MB / 0.565 GB, free: 5.824 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03326/0.7637, allocations: 9.622 MB / 0.5744 GB, free: 11.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01188/0.7757, allocations: 3.134 MB / 0.5775 GB, free: 8.672 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005906/0.7763, allocations: 62.78 kB / 0.5775 GB, free: 8.613 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001422/0.7765, allocations: 87.55 kB / 0.5776 GB, free: 8.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=359): time 1.096e-05/0.7765, allocations: 4 kB / 0.5776 GB, free: 8.516 MB / 426.7 MB Notification: Performance of matching and sorting (n=421): time 0.4214/1.198, allocations: 21.02 MB / 0.5982 GB, free: 87.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002279/1.198, allocations: 0.5597 MB / 0.5987 GB, free: 86.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/1.202, allocations: 1.376 MB / 0.6 GB, free: 86.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001401/1.204, allocations: 118.3 kB / 0.6002 GB, free: 86.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/1.205, allocations: 0.9183 MB / 0.6011 GB, free: 86.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002232/1.207, allocations: 1.417 MB / 0.6024 GB, free: 85.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000496/1.208, allocations: 87.03 kB / 0.6025 GB, free: 85.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003518/1.208, allocations: 469.5 kB / 0.603 GB, free: 85.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005625/1.214, allocations: 1.481 MB / 0.6044 GB, free: 85.15 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004715/1.218, allocations: 2.209 MB / 0.6066 GB, free: 84.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004398/1.223, allocations: 1.505 MB / 0.608 GB, free: 84.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.367e-05/1.223, allocations: 6.438 kB / 0.608 GB, free: 84.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01324/1.236, allocations: 5.182 MB / 0.6131 GB, free: 84.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.7e-05/1.236, allocations: 10.56 kB / 0.6131 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.827e-05/1.236, allocations: 18.22 kB / 0.6131 GB, free: 84.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004579/1.241, allocations: 2.002 MB / 0.6151 GB, free: 83.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003699/1.245, allocations: 0.8159 MB / 0.6159 GB, free: 83.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0208/1.265, allocations: 16.68 MB / 0.6322 GB, free: 72.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005173/1.271, allocations: 385.2 kB / 0.6325 GB, free: 72.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001432/1.272, allocations: 189.9 kB / 0.6327 GB, free: 72.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,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,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * 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: 10 * 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%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.003877/1.276, allocations: 0.6131 MB / 0.6333 GB, free: 71.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001862/1.278, allocations: 291.3 kB / 0.6336 GB, free: 71.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001988/1.28, allocations: 0.6465 MB / 0.6342 GB, free: 71.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.233e-05/1.28, allocations: 42.69 kB / 0.6343 GB, free: 71.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-05/1.28, allocations: 9.969 kB / 0.6343 GB, free: 71.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.394e-05/1.28, allocations: 24.52 kB / 0.6343 GB, free: 71.32 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.03003/1.31, allocations: 10.55 MB / 0.6446 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.905e-05/1.31, allocations: 8.25 kB / 0.6446 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003882/1.314, allocations: 0.7256 MB / 0.6453 GB, free: 66.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004548/1.319, allocations: 1.873 MB / 0.6472 GB, free: 65.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008477/1.32, allocations: 131.7 kB / 0.6473 GB, free: 65.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01887/1.339, allocations: 16.16 MB / 0.6631 GB, free: 52.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-05/1.339, allocations: 18.73 kB / 0.6631 GB, free: 52.78 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01881/1.357, allocations: 8.493 MB / 0.6714 GB, free: 48.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002867/1.36, allocations: 0.7189 MB / 0.6721 GB, free: 47.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001294/1.362, allocations: 110 kB / 0.6722 GB, free: 47.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004146/1.366, allocations: 349.1 kB / 0.6725 GB, free: 47.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001628/1.367, allocations: 0.6065 MB / 0.6731 GB, free: 47.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000609/1.368, allocations: 167.6 kB / 0.6733 GB, free: 47.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002436/1.371, allocations: 1.033 MB / 0.6743 GB, free: 46.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.371, allocations: 4 kB / 0.6743 GB, free: 46.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006296/1.377, allocations: 1.01 MB / 0.6753 GB, free: 46.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (299): * Single equations (assignments): 289 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00129/1.378, allocations: 353.6 kB / 0.6756 GB, free: 46.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01057/1.389, allocations: 5 MB / 0.6805 GB, free: 44.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/1.389, allocations: 0 / 0.6805 GB, free: 44.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008432/1.397, allocations: 3.865 MB / 0.6843 GB, free: 42.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004144/1.401, allocations: 377.1 kB / 0.6846 GB, free: 42.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01744/1.419, allocations: 9.305 MB / 0.6937 GB, free: 36.65 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002486/1.421, allocations: 1.9 MB / 0.6956 GB, free: 35.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002925/1.424, allocations: 451.6 kB / 0.696 GB, free: 34.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/1.426, allocations: 243.4 kB / 0.6962 GB, free: 34.79 MB / 426.7 MB Notification: Performance of SimCode: time 1.302e-06/1.426, allocations: 0 / 0.6962 GB, free: 34.79 MB / 426.7 MB Notification: Performance of Templates: time 0.08212/1.508, allocations: 51.6 MB / 0.7466 GB, free: 7.133 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.sim & ./ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1)