Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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) 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(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.00107, allocations: 110.6 kB / 18.4 MB, free: 4.699 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.001015/0.001015, allocations: 190.1 kB / 19.34 MB, free: 3.777 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.239/1.239, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.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: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 51.94 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06924/0.0704, allocations: 46.61 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003594/0.07402, allocations: 3.042 MB / 378.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.07544, allocations: 0.9746 MB / 379.8 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.07558, allocations: 4 kB / 379.8 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.0758, allocations: 67.31 kB / 379.9 MB, free: 496 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.07602, allocations: 130.9 kB / 380 MB, free: 364 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004372/0.07647, allocations: 227.5 kB / 380.3 MB, free: 136 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1406/0.2171, allocations: 0.6243 MB / 380.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000257/0.2173, allocations: 133.6 kB / 381 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004448/0.2178, allocations: 280.1 kB / 381.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003749/0.2182, allocations: 301.5 kB / 381.6 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.2183, allocations: 51.75 kB / 381.6 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002169/0.2185, allocations: 98.52 kB / 381.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.2187, allocations: 121.1 kB / 381.8 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002242/0.2189, allocations: 253.2 kB / 382.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006394/0.2195, allocations: 0.5919 MB / 382.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2196, allocations: 3 kB / 382.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2196, allocations: 0.5 kB / 382.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.2196, allocations: 0 / 382.7 MB, free: 10.15 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00128/0.2209, allocations: 0.7827 MB / 383.5 MB, free: 9.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.2209, allocations: 9.5 kB / 383.5 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.357e-05/0.221, allocations: 49.66 kB / 383.5 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003805/0.2214, allocations: 330.9 kB / 383.8 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.2214, allocations: 33 kB / 383.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.152e-05/0.2215, allocations: 44.16 kB / 383.9 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000825/0.2223, allocations: 474 kB / 384.4 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.2224, allocations: 11.97 kB / 384.4 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.2224, allocations: 16.52 kB / 384.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.2224, allocations: 10.84 kB / 384.4 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008794/0.2233, allocations: 484.6 kB / 384.9 MB, free: 9.156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.2251, allocations: 1.113 MB / 386 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007006/0.2258, allocations: 394.8 kB / 386.4 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004777/0.2263, allocations: 263.3 kB / 386.6 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.292e-05/0.2263, allocations: 8.094 kB / 386.7 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.408e-05/0.2263, allocations: 42.36 kB / 386.7 MB, free: 8.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.633e-06/0.2264, allocations: 0 / 386.7 MB, free: 8.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004588/0.2309, allocations: 2.33 MB / 389 MB, free: 7.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.486e-05/0.231, allocations: 58.78 kB / 389.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.2312, allocations: 281.2 kB / 389.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.637e-05/0.2313, allocations: 45.75 kB / 389.4 MB, free: 6.773 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.434e-05/0.2314, allocations: 187.9 kB / 389.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.2315, allocations: 187.8 kB / 389.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.2316, allocations: 114 kB / 389.9 MB, free: 6.418 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.621e-05/0.2317, allocations: 351.6 kB / 390.2 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004442/0.2322, allocations: 241.3 kB / 390.5 MB, free: 6.008 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004752/0.2326, allocations: 289.6 kB / 390.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000704/0.2334, allocations: 414.9 kB / 391.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2334, allocations: 4 kB / 391.2 MB, free: 5.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001487/0.2349, allocations: 0.7842 MB / 391.9 MB, free: 5.418 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.2349, allocations: 8.953 kB / 391.9 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.2349, allocations: 3.875 kB / 392 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008058/0.2357, allocations: 0.4927 MB / 392.4 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/0.236, allocations: 86.97 kB / 392.5 MB, free: 5.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009667/0.237, allocations: 1.41 MB / 393.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004686/0.2375, allocations: 70.62 kB / 394 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.702e-05/0.2376, allocations: 22.53 kB / 394 MB, free: 4.082 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000163/0.2377, allocations: 181.4 kB / 394.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.958e-05/0.2378, allocations: 43.47 kB / 394.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.2379, allocations: 59.33 kB / 394.3 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.2379, allocations: 2.906 kB / 394.3 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2379, allocations: 3.875 kB / 394.3 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.2381, allocations: 162.8 kB / 394.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.64e-05/0.2382, allocations: 18.89 kB / 394.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00048/0.2387, allocations: 73.02 kB / 394.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.2389, allocations: 93.17 kB / 394.7 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001818/0.2407, allocations: 0.7727 MB / 395.4 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001406/0.2421, allocations: 0.9508 MB / 396.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004392/0.2426, allocations: 246.3 kB / 396.6 MB, free: 2.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001642/0.2428, allocations: 203.5 kB / 396.8 MB, free: 2.703 MB / 318.1 MB Notification: Performance of Backend: time 1.042e-06/0.2428, allocations: 4 kB / 396.8 MB, free: 2.699 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.2439, allocations: 0.4885 MB / 397.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of SimCode: time 0.001388/0.2453, allocations: 1.543 MB / 398.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of Templates: time 0.01399/0.2593, allocations: 9.877 MB / 408.7 MB, free: 13.17 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)