Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_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.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 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.1_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01226/0.01226, allocations: 101.5 kB / 15.73 MB, free: 6.047 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.001833/0.001833, allocations: 196.5 kB / 16.68 MB, free: 5.965 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.607/1.607, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3697/0.3697, allocations: 37.99 MB / 307.9 MB, free: 10.05 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.1. 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.002377/0.002377, allocations: 67.91 kB / 433 MB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4594/0.4618, allocations: 56.46 MB / 489.4 MB, free: 19.9 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.007575/0.4694, allocations: 3.924 MB / 493.4 MB, free: 17.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00401/0.4735, allocations: 1.288 MB / 494.6 MB, free: 16.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007857/0.4743, allocations: 14.53 kB / 494.7 MB, free: 16.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005151/0.4749, allocations: 117.7 kB / 494.8 MB, free: 16.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007567/0.4757, allocations: 202.1 kB / 495 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001432/0.4771, allocations: 342.6 kB / 495.3 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00187/0.479, allocations: 1.027 MB / 496.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005611/0.4796, allocations: 187.1 kB / 496.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001417/0.481, allocations: 439.2 kB / 496.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00124/0.4823, allocations: 488.3 kB / 497.4 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000251/0.4826, allocations: 77.12 kB / 497.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005389/0.4831, allocations: 134.3 kB / 497.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003907/0.4835, allocations: 203.5 kB / 497.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006563/0.4842, allocations: 401 kB / 498.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001949/0.4862, allocations: 0.9411 MB / 499.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4862, allocations: 0.6562 kB / 499.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4862, allocations: 4 kB / 499.2 MB, free: 14.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.654e-05/0.4862, allocations: 0 / 499.2 MB, free: 14.08 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.003605/0.4898, allocations: 1.075 MB / 0.4885 GB, free: 13.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.98e-05/0.4899, allocations: 13.48 kB / 0.4885 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003158/0.4902, allocations: 82.81 kB / 0.4886 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.4915, allocations: 442.9 kB / 0.489 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-05/0.4916, allocations: 47.16 kB / 0.4891 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002279/0.4918, allocations: 69.3 kB / 0.4891 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002621/0.4945, allocations: 0.8235 MB / 0.4899 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.846e-05/0.4945, allocations: 8.625 kB / 0.49 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.4946, allocations: 25.69 kB / 0.49 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3e-05/0.4947, allocations: 15.09 kB / 0.49 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002666/0.4974, allocations: 0.7643 MB / 0.4907 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005371/0.5027, allocations: 2.547 MB / 0.4932 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.5044, allocations: 0.6253 MB / 0.4938 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008139/0.5052, allocations: 378.6 kB / 0.4942 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.494e-05/0.5053, allocations: 15.78 kB / 0.4942 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.5053, allocations: 42.89 kB / 0.4943 GB, free: 10.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 3.967e-06/0.5053, allocations: 5.125 kB / 0.4943 GB, free: 10.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.00819/0.5135, allocations: 3.536 MB / 0.4977 GB, free: 7.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.5136, allocations: 140 kB / 0.4978 GB, free: 7.715 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005683/0.5142, allocations: 426 kB / 0.4983 GB, free: 7.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.278e-05/0.5142, allocations: 49.83 kB / 0.4983 GB, free: 7.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.5144, allocations: 288.9 kB / 0.4986 GB, free: 7.148 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002201/0.5147, allocations: 272.8 kB / 0.4988 GB, free: 6.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003245/0.515, allocations: 172.5 kB / 0.499 GB, free: 6.805 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5152, allocations: 368.4 kB / 0.4994 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008323/0.516, allocations: 392.5 kB / 0.4997 GB, free: 6.266 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009102/0.5169, allocations: 0.5375 MB / 0.5003 GB, free: 5.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.5182, allocations: 0.7375 MB / 0.501 GB, free: 5.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.5183, allocations: 1.5 kB / 0.501 GB, free: 5.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002724/0.521, allocations: 1.277 MB / 0.5022 GB, free: 4.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.521, allocations: 10.41 kB / 0.5022 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.5211, allocations: 4.719 kB / 0.5022 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.5225, allocations: 0.7622 MB / 0.503 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005406/0.523, allocations: 149.9 kB / 0.5031 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/0.5249, allocations: 2.696 MB / 0.5058 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009759/0.5259, allocations: 144.3 kB / 0.5059 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.561e-05/0.526, allocations: 35.36 kB / 0.5059 GB, free: 1.934 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.0004068/0.5264, allocations: 213.9 kB / 0.5061 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.5266, allocations: 71.03 kB / 0.5062 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001728/0.5267, allocations: 84.62 kB / 0.5063 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.5268, allocations: 12.52 kB / 0.5063 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.564e-05/0.5268, allocations: 1.344 kB / 0.5063 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.5268, allocations: 9.297 kB / 0.5063 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003795/0.5306, allocations: 2.164 MB / 0.5084 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.5306, allocations: 5.422 kB / 0.5084 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005261/0.5311, allocations: 116.9 kB / 0.5085 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001412/0.5326, allocations: 0.7129 MB / 0.5092 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.069e-05/0.5327, allocations: 35.61 kB / 0.5093 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.535, allocations: 2.648 MB / 0.5118 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.535, allocations: 1.656 kB / 0.5118 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003577/0.5386, allocations: 1.772 MB / 0.5136 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004939/0.5391, allocations: 221.2 kB / 0.5138 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/0.5393, allocations: 30.98 kB / 0.5138 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008907/0.5402, allocations: 117.5 kB / 0.5139 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003487/0.5405, allocations: 146.2 kB / 0.5141 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.01e-05/0.5406, allocations: 37.52 kB / 0.5141 GB, free: 11.89 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004657/0.5411, allocations: 296.4 kB / 0.5144 GB, free: 11.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5411, allocations: 0 / 0.5144 GB, free: 11.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009886/0.5421, allocations: 196 kB / 0.5146 GB, free: 11.69 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.0003059/0.5424, allocations: 157 kB / 0.5147 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002442/0.5449, allocations: 0.9459 MB / 0.5157 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5449, allocations: 0.8125 kB / 0.5157 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001314/0.5462, allocations: 0.5106 MB / 0.5161 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.5472, allocations: 122.6 kB / 0.5163 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005253/0.5525, allocations: 2.069 MB / 0.5183 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006303/0.5532, allocations: 0.9105 MB / 0.5192 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002836/0.5535, allocations: 64.77 kB / 0.5192 GB, free: 8.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.5536, allocations: 55.42 kB / 0.5193 GB, free: 8.031 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5536, allocations: 0 / 0.5193 GB, free: 8.031 MB / 398.1 MB Notification: Performance of Templates: time 0.025/0.5786, allocations: 15.84 MB / 0.5348 GB, free: 8.188 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe 2>&1)