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.005842/0.005842, allocations: 105.6 kB / 15.74 MB, free: 6.008 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.001213/0.001213, allocations: 196.9 kB / 16.68 MB, free: 5.93 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.62/1.62, allocations: 205.1 MB / 222.6 MB, free: 4.289 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.4329/0.4329, allocations: 39.94 MB / 309.8 MB, free: 9.73 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.001656/0.001657, allocations: 71.89 kB / 435.8 MB, free: 2.457 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4595/0.4612, allocations: 56.88 MB / 492.6 MB, free: 19.72 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005766/0.467, allocations: 3.93 MB / 496.6 MB, free: 16.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00412/0.4712, allocations: 1.279 MB / 497.9 MB, free: 16.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008692/0.4721, allocations: 14.09 kB / 497.9 MB, free: 16.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004589/0.4726, allocations: 110.5 kB / 498 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006595/0.4733, allocations: 206.1 kB / 498.2 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.4745, allocations: 346.8 kB / 498.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001471/0.476, allocations: 1.026 MB / 499.5 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004137/0.4764, allocations: 183.1 kB / 499.7 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.4774, allocations: 446.9 kB / 0.4884 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007756/0.4782, allocations: 493.1 kB / 0.4889 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.4784, allocations: 77.25 kB / 0.489 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000358/0.4788, allocations: 125.7 kB / 0.4891 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002545/0.4791, allocations: 203.3 kB / 0.4893 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004456/0.4795, allocations: 400.4 kB / 0.4897 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001482/0.481, allocations: 0.9343 MB / 0.4906 GB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.481, allocations: 0 / 0.4906 GB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.048e-06/0.481, allocations: 9.062 kB / 0.4906 GB, free: 13.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.4811, allocations: 0 / 0.4906 GB, free: 13.91 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.002618/0.4837, allocations: 1.078 MB / 0.4916 GB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.051e-05/0.4838, allocations: 13.64 kB / 0.4917 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000223/0.484, allocations: 78.88 kB / 0.4917 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009466/0.485, allocations: 455 kB / 0.4922 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.769e-05/0.485, allocations: 47.03 kB / 0.4922 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.4852, allocations: 72.41 kB / 0.4923 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001772/0.487, allocations: 0.8233 MB / 0.4931 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.043e-05/0.4871, allocations: 2.594 kB / 0.4931 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.742e-05/0.4871, allocations: 25.62 kB / 0.4931 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.4872, allocations: 15.09 kB / 0.4931 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.4891, allocations: 0.763 MB / 0.4939 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005353/0.4944, allocations: 2.544 MB / 0.4964 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.4961, allocations: 0.6401 MB / 0.497 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007925/0.4969, allocations: 378.5 kB / 0.4973 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.732e-05/0.497, allocations: 6.938 kB / 0.4973 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.497, allocations: 38.94 kB / 0.4974 GB, free: 9.246 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 3.176e-06/0.497, allocations: 7.938 kB / 0.4974 GB, free: 9.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.007847/0.5049, allocations: 3.526 MB / 0.5008 GB, free: 6.727 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.505, allocations: 153.3 kB / 0.501 GB, free: 6.555 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006069/0.5056, allocations: 424.7 kB / 0.5014 GB, free: 6.301 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.05e-05/0.5057, allocations: 54.41 kB / 0.5014 GB, free: 6.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.5059, allocations: 281.5 kB / 0.5017 GB, free: 5.996 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.5061, allocations: 269 kB / 0.502 GB, free: 5.762 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002821/0.5064, allocations: 164.6 kB / 0.5021 GB, free: 5.664 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.5065, allocations: 367.1 kB / 0.5025 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007877/0.5073, allocations: 394.3 kB / 0.5028 GB, free: 5.125 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008899/0.5082, allocations: 0.5457 MB / 0.5034 GB, free: 4.754 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/0.5096, allocations: 0.7338 MB / 0.5041 GB, free: 4.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.5096, allocations: 1.188 kB / 0.5041 GB, free: 4.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002853/0.5124, allocations: 1.273 MB / 0.5053 GB, free: 3.684 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.5125, allocations: 11.06 kB / 0.5054 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.5125, allocations: 5.438 kB / 0.5054 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001705/0.5142, allocations: 0.761 MB / 0.5061 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006206/0.5148, allocations: 151.1 kB / 0.5062 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/0.5171, allocations: 2.699 MB / 0.5089 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.5183, allocations: 140 kB / 0.509 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.624e-05/0.5184, allocations: 38.92 kB / 0.5091 GB, free: 0.7812 MB / 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.0005313/0.5189, allocations: 226.4 kB / 0.5093 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.5192, allocations: 61.56 kB / 0.5093 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002138/0.5194, allocations: 93.55 kB / 0.5094 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.5194, allocations: 8.094 kB / 0.5094 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-05/0.5194, allocations: 1.406 kB / 0.5094 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.5194, allocations: 9.422 kB / 0.5094 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004598/0.524, allocations: 2.169 MB / 0.5116 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.5241, allocations: 0 / 0.5116 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005864/0.5247, allocations: 117 kB / 0.5117 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.5261, allocations: 0.7247 MB / 0.5124 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.53e-05/0.5262, allocations: 35.92 kB / 0.5124 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00275/0.529, allocations: 2.644 MB / 0.515 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.529, allocations: 1.359 kB / 0.515 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003446/0.5324, allocations: 1.76 MB / 0.5167 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004552/0.5329, allocations: 224.1 kB / 0.5169 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.5331, allocations: 28 kB / 0.5169 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008894/0.5339, allocations: 123.8 kB / 0.5171 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003546/0.5343, allocations: 143.8 kB / 0.5172 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.926e-05/0.5344, allocations: 31.95 kB / 0.5172 GB, free: 10.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003876/0.5348, allocations: 295.1 kB / 0.5175 GB, free: 10.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5348, allocations: 0 / 0.5175 GB, free: 10.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001077/0.5359, allocations: 196 kB / 0.5177 GB, free: 9.871 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.0003831/0.5363, allocations: 159 kB / 0.5179 GB, free: 9.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002255/0.5385, allocations: 0.9451 MB / 0.5188 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5385, allocations: 0.8125 kB / 0.5188 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/0.5398, allocations: 0.5119 MB / 0.5193 GB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.5408, allocations: 131 kB / 0.5194 GB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00504/0.5459, allocations: 2.067 MB / 0.5214 GB, free: 6.016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000616/0.5465, allocations: 0.9144 MB / 0.5223 GB, free: 5.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003156/0.5468, allocations: 68.81 kB / 0.5224 GB, free: 5.004 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.547, allocations: 47.42 kB / 0.5224 GB, free: 4.961 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.547, allocations: 0 / 0.5224 GB, free: 4.961 MB / 398.1 MB Notification: Performance of Templates: time 0.02527/0.5723, allocations: 15.83 MB / 0.5379 GB, free: 5.125 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)