Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.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 3.2.3+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 Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0083/0.0083, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.001303/0.001303, allocations: 188.5 kB / 16.67 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.721/1.721, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.371/0.371, allocations: 39.94 MB / 309.8 MB, free: 9.332 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 67.91 kB / 435.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4104/0.4119, allocations: 56.87 MB / 492.6 MB, free: 19.42 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005084/0.4171, allocations: 3.937 MB / 496.6 MB, free: 16.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002703/0.4198, allocations: 1.279 MB / 497.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003157/0.4201, allocations: 12.66 kB / 497.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003829/0.4206, allocations: 111.9 kB / 498 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004781/0.421, allocations: 202.2 kB / 498.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.4222, allocations: 353.3 kB / 498.5 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001304/0.4235, allocations: 1.028 MB / 499.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003297/0.4238, allocations: 178 kB / 499.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006905/0.4245, allocations: 442.9 kB / 0.4884 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006916/0.4252, allocations: 492.9 kB / 0.4889 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001647/0.4254, allocations: 76.78 kB / 0.489 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003236/0.4257, allocations: 126.1 kB / 0.4891 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002733/0.426, allocations: 207.2 kB / 0.4893 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000489/0.4265, allocations: 402.3 kB / 0.4897 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001408/0.4279, allocations: 0.9354 MB / 0.4906 GB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.428, allocations: 0 / 0.4906 GB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.428, allocations: 0.9375 kB / 0.4906 GB, free: 13.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.428, allocations: 0 / 0.4906 GB, free: 13.61 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00223/0.4302, allocations: 1.101 MB / 0.4917 GB, free: 12.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4303, allocations: 12.11 kB / 0.4917 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.4305, allocations: 89 kB / 0.4918 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007758/0.4312, allocations: 450.5 kB / 0.4922 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.436e-05/0.4313, allocations: 46.44 kB / 0.4922 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.4315, allocations: 73.08 kB / 0.4923 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.4332, allocations: 0.8245 MB / 0.4931 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.812e-05/0.4332, allocations: 7.422 kB / 0.4931 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.566e-05/0.4333, allocations: 25.53 kB / 0.4931 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.4333, allocations: 15.38 kB / 0.4932 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.435, allocations: 0.7588 MB / 0.4939 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004176/0.4392, allocations: 2.556 MB / 0.4964 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.4406, allocations: 0.6369 MB / 0.497 GB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007008/0.4413, allocations: 378.6 kB / 0.4974 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.505e-05/0.4414, allocations: 11.28 kB / 0.4974 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.4414, allocations: 49.52 kB / 0.4974 GB, free: 8.938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.484e-06/0.4414, allocations: 1.5 kB / 0.4974 GB, free: 8.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.007973/0.4494, allocations: 3.558 MB / 0.5009 GB, free: 6.395 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/0.4495, allocations: 136.4 kB / 0.501 GB, free: 6.238 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005754/0.4501, allocations: 433.5 kB / 0.5015 GB, free: 5.977 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.649e-05/0.4502, allocations: 50.75 kB / 0.5015 GB, free: 5.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.4504, allocations: 289.1 kB / 0.5018 GB, free: 5.668 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/0.4506, allocations: 270 kB / 0.502 GB, free: 5.434 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003289/0.4509, allocations: 180.2 kB / 0.5022 GB, free: 5.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.451, allocations: 364.4 kB / 0.5026 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000825/0.4519, allocations: 390.2 kB / 0.5029 GB, free: 4.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008662/0.4527, allocations: 0.5488 MB / 0.5035 GB, free: 4.414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.4541, allocations: 0.7417 MB / 0.5042 GB, free: 3.965 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.4541, allocations: 1.312 kB / 0.5042 GB, free: 3.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002777/0.4569, allocations: 1.285 MB / 0.5054 GB, free: 3.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.4569, allocations: 10.62 kB / 0.5054 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.4569, allocations: 5.031 kB / 0.5055 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001539/0.4585, allocations: 0.7606 MB / 0.5062 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006298/0.4591, allocations: 149.6 kB / 0.5063 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002211/0.4614, allocations: 2.686 MB / 0.509 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.4624, allocations: 145.6 kB / 0.5091 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-05/0.4625, allocations: 37.67 kB / 0.5091 GB, free: 448 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0005365/0.463, allocations: 222.1 kB / 0.5093 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002233/0.4633, allocations: 73.81 kB / 0.5094 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.4635, allocations: 81.67 kB / 0.5095 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.4635, allocations: 8.25 kB / 0.5095 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.835e-05/0.4635, allocations: 5.312 kB / 0.5095 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.4635, allocations: 5.359 kB / 0.5095 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00458/0.4681, allocations: 2.169 MB / 0.5116 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.4681, allocations: 5.094 kB / 0.5116 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005589/0.4687, allocations: 112.1 kB / 0.5117 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001352/0.4701, allocations: 0.7252 MB / 0.5125 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.73e-05/0.4702, allocations: 32.05 kB / 0.5125 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/0.4726, allocations: 2.651 MB / 0.5151 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.4726, allocations: 1.281 kB / 0.5151 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003962/0.4766, allocations: 1.776 MB / 0.5168 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000487/0.4771, allocations: 224.5 kB / 0.517 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.4772, allocations: 28 kB / 0.517 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008345/0.4781, allocations: 115.8 kB / 0.5172 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000415/0.4785, allocations: 155.7 kB / 0.5173 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.537e-05/0.4786, allocations: 31.97 kB / 0.5173 GB, free: 10.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004433/0.4791, allocations: 291.1 kB / 0.5176 GB, free: 9.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4791, allocations: 0 / 0.5176 GB, free: 9.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001103/0.4802, allocations: 196 kB / 0.5178 GB, free: 9.648 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00039/0.4806, allocations: 159.1 kB / 0.518 GB, free: 9.484 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.4831, allocations: 0.9498 MB / 0.5189 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4831, allocations: 0 / 0.5189 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.4844, allocations: 0.508 MB / 0.5194 GB, free: 8.027 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.4855, allocations: 119.1 kB / 0.5195 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00508/0.4906, allocations: 2.106 MB / 0.5215 GB, free: 5.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006962/0.4913, allocations: 0.8988 MB / 0.5224 GB, free: 4.836 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003939/0.4917, allocations: 60.83 kB / 0.5225 GB, free: 4.777 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.4919, allocations: 59.41 kB / 0.5225 GB, free: 4.723 MB / 398.1 MB Notification: Performance of SimCode: time 2.144e-06/0.4919, allocations: 0 / 0.5225 GB, free: 4.723 MB / 398.1 MB Notification: Performance of Templates: time 0.02701/0.5189, allocations: 15.82 MB / 0.538 GB, free: 4.895 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe 2>&1)