Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 106.1 kB / 17.74 MB, free: 5.348 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.00176/0.00176, allocations: 186.4 kB / 18.67 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009467/0.0009467, allocations: 47.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2136, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003708/0.2173, allocations: 2.735 MB / 404.1 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.2191, allocations: 1.077 MB / 405.2 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001426/0.2193, allocations: 4 kB / 405.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000224/0.2195, allocations: 79.36 kB / 405.3 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000534/0.2201, allocations: 194.8 kB / 405.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004362/0.2205, allocations: 235.6 kB / 405.7 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006015/0.2211, allocations: 0.6547 MB / 406.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.2213, allocations: 119.4 kB / 406.5 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003546/0.2217, allocations: 299.1 kB / 406.8 MB, free: 3.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003779/0.2221, allocations: 347 kB / 407.1 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.932e-05/0.2222, allocations: 52 kB / 407.2 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002496/0.2224, allocations: 135.8 kB / 407.3 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.2226, allocations: 147.6 kB / 407.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002296/0.2228, allocations: 246.8 kB / 407.7 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006198/0.2235, allocations: 0.6514 MB / 408.3 MB, free: 1.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2235, allocations: 3.938 kB / 408.3 MB, free: 1.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2235, allocations: 0 / 408.3 MB, free: 1.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.2235, allocations: 0 / 408.3 MB, free: 1.914 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.001523/0.225, allocations: 0.7915 MB / 409.1 MB, free: 1.074 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.2251, allocations: 15.89 kB / 409.1 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003291/0.2254, allocations: 64.36 kB / 409.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.2259, allocations: 370.4 kB / 409.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.2261, allocations: 96.95 kB / 409.7 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.669e-05/0.2262, allocations: 44.28 kB / 409.7 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.2272, allocations: 0.5606 MB / 410.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.2272, allocations: 0 / 410.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.441e-05/0.2273, allocations: 16 kB / 410.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.2273, allocations: 19.92 kB / 410.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.2286, allocations: 0.6285 MB / 410.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002341/0.2309, allocations: 1.283 MB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.2321, allocations: 0.5451 MB / 412.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000621/0.2327, allocations: 326.4 kB / 413.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.235e-05/0.2328, allocations: 12.5 kB / 413.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.2328, allocations: 43.11 kB / 413.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 1.964e-06/0.2328, allocations: 0 / 413.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.006654/0.2395, allocations: 2.863 MB / 416 MB, free: 9.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.2395, allocations: 89.67 kB / 416.1 MB, free: 9.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003628/0.2399, allocations: 334.8 kB / 416.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.146e-05/0.24, allocations: 41.7 kB / 416.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.2401, allocations: 169.6 kB / 416.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.2402, allocations: 216.8 kB / 416.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.2404, allocations: 122.3 kB / 417 MB, free: 8.934 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.2406, allocations: 346.8 kB / 417.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006011/0.2412, allocations: 293.2 kB / 417.6 MB, free: 8.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006503/0.2418, allocations: 354.5 kB / 417.9 MB, free: 7.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.2429, allocations: 0.5265 MB / 418.4 MB, free: 7.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2429, allocations: 0 / 418.4 MB, free: 7.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001713/0.2447, allocations: 0.8772 MB / 419.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.2447, allocations: 8 kB / 419.3 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2447, allocations: 3.938 kB / 419.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.2457, allocations: 483.3 kB / 419.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003869/0.2461, allocations: 83.88 kB / 419.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.2474, allocations: 1.079 MB / 421 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004778/0.2479, allocations: 60 kB / 421 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.411e-05/0.248, allocations: 31.92 kB / 421.1 MB, free: 4.762 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002239/0.2482, allocations: 187.1 kB / 421.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.2483, allocations: 39.53 kB / 421.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.2485, allocations: 63.77 kB / 421.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.2485, allocations: 3.984 kB / 421.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2485, allocations: 4 kB / 421.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002232/0.2487, allocations: 176.5 kB / 421.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.539e-05/0.2488, allocations: 20 kB / 421.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004797/0.2493, allocations: 55.92 kB / 421.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.2495, allocations: 84.38 kB / 421.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002596/0.2521, allocations: 1.006 MB / 422.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002046/0.2542, allocations: 1.175 MB / 423.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006012/0.2548, allocations: 304.3 kB / 424.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002624/0.255, allocations: 241.9 kB / 424.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of Backend: time 4.6e-07/0.2551, allocations: 0 / 424.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001405/0.2565, allocations: 0.5769 MB / 425 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of SimCode: time 0.001485/0.258, allocations: 1.426 MB / 426.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of Templates: time 0.01523/0.2732, allocations: 9.95 MB / 436.3 MB, free: 5.379 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)