Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009769/0.000977, allocations: 117.2 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 206.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002032, allocations: 59.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2331, allocations: 50.55 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003377/0.2365, allocations: 2.438 MB / 412.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.238, allocations: 1.061 MB / 413.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.967e-05/0.2381, allocations: 7.938 kB / 413.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.2384, allocations: 63.5 kB / 413.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003829/0.2388, allocations: 150.2 kB / 413.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003326/0.2391, allocations: 163.7 kB / 413.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004361/0.2396, allocations: 470.7 kB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.2397, allocations: 72.69 kB / 414.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.2399, allocations: 203.5 kB / 414.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.2402, allocations: 239.2 kB / 414.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.852e-05/0.2403, allocations: 40 kB / 414.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.2405, allocations: 131.9 kB / 414.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.2406, allocations: 103.7 kB / 415 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.2408, allocations: 183.2 kB / 415.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004933/0.2413, allocations: 499.7 kB / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2413, allocations: 3.984 kB / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2413, allocations: 0 / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2413, allocations: 0 / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001126/0.2424, allocations: 0.6588 MB / 416.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.2425, allocations: 8.031 kB / 416.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003193/0.2428, allocations: 52.53 kB / 416.4 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.2432, allocations: 305.3 kB / 416.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.2434, allocations: 88.5 kB / 416.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.356e-05/0.2434, allocations: 32.38 kB / 416.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007147/0.2442, allocations: 381.4 kB / 417.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.2442, allocations: 0 / 417.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.782e-05/0.2442, allocations: 15.98 kB / 417.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.2442, allocations: 8 kB / 417.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008721/0.2451, allocations: 413.9 kB / 417.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.2471, allocations: 1.265 MB / 418.9 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006961/0.2478, allocations: 349.9 kB / 419.2 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003861/0.2482, allocations: 188.7 kB / 419.4 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.2483, allocations: 11.98 kB / 419.4 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.2483, allocations: 35.28 kB / 419.5 MB, free: 7.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.764e-06/0.2483, allocations: 0 / 419.5 MB, free: 7.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004798/0.2531, allocations: 1.909 MB / 421.4 MB, free: 5.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.2532, allocations: 88.86 kB / 421.5 MB, free: 5.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.2535, allocations: 239 kB / 421.7 MB, free: 5.414 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.2535, allocations: 37.7 kB / 421.7 MB, free: 5.371 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.2536, allocations: 140.8 kB / 421.9 MB, free: 5.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.2537, allocations: 149.9 kB / 422 MB, free: 5.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.2539, allocations: 86.02 kB / 422.1 MB, free: 4.992 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.254, allocations: 334.8 kB / 422.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003877/0.2544, allocations: 168.8 kB / 422.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004276/0.2548, allocations: 225.9 kB / 422.8 MB, free: 4.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007137/0.2556, allocations: 343.2 kB / 423.2 MB, free: 3.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2556, allocations: 0 / 423.2 MB, free: 3.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00117/0.2567, allocations: 0.5511 MB / 423.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.2568, allocations: 12.12 kB / 423.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.2568, allocations: 0 / 423.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008005/0.2576, allocations: 300.5 kB / 424 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.2579, allocations: 51.95 kB / 424.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003833/0.2617, allocations: 2.884 MB / 427 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.262, allocations: 31.95 kB / 427 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-05/0.262, allocations: 16.06 kB / 427 MB, free: 15.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.2622, allocations: 169.6 kB / 427.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.151e-05/0.2623, allocations: 23.72 kB / 427.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.884e-05/0.2624, allocations: 42.98 kB / 427.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2624, allocations: 0 / 427.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2624, allocations: 0 / 427.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.2626, allocations: 152.6 kB / 427.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.051e-05/0.2627, allocations: 12 kB / 427.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002721/0.2629, allocations: 27.92 kB / 427.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.2631, allocations: 43.92 kB / 427.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001806/0.2649, allocations: 0.6761 MB / 428.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001381/0.2663, allocations: 0.801 MB / 428.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003875/0.2667, allocations: 167.9 kB / 429.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002021/0.2669, allocations: 180.2 kB / 429.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of Backend: time 3.51e-07/0.2669, allocations: 0 / 429.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002301/0.2692, allocations: 0.9848 MB / 430.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of SimCode: time 0.001266/0.2705, allocations: 1.22 MB / 431.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of Templates: time 0.01233/0.2828, allocations: 7.536 MB / 439 MB, free: 3.949 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)