Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 110.3 kB / 17.74 MB, free: 5.359 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.001827/0.001827, allocations: 185.4 kB / 18.67 MB, free: 4.438 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.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009682/0.0009683, allocations: 47.94 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2101, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003436/0.2136, allocations: 2.355 MB / 403.8 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.2153, allocations: 0.9092 MB / 404.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001608/0.2154, allocations: 4 kB / 404.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.2157, allocations: 43.58 kB / 404.7 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004779/0.2162, allocations: 143.2 kB / 404.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003497/0.2165, allocations: 171.6 kB / 405 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000411/0.2169, allocations: 414.8 kB / 405.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.2171, allocations: 72.66 kB / 405.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002504/0.2174, allocations: 179.5 kB / 405.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003174/0.2177, allocations: 219.3 kB / 405.9 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.7e-05/0.2178, allocations: 32 kB / 405.9 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000237/0.218, allocations: 127.8 kB / 406 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.2182, allocations: 99.72 kB / 406.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.2183, allocations: 163.2 kB / 406.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004942/0.2188, allocations: 451.7 kB / 406.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2189, allocations: 0 / 406.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2189, allocations: 0 / 406.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.2189, allocations: 0 / 406.7 MB, free: 3.523 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001148/0.22, allocations: 0.6355 MB / 407.4 MB, free: 2.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2201, allocations: 8.031 kB / 407.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003205/0.2204, allocations: 48.55 kB / 407.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000456/0.2209, allocations: 304.5 kB / 407.7 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.221, allocations: 88.52 kB / 407.8 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.182e-05/0.2211, allocations: 32.38 kB / 407.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006901/0.2218, allocations: 373.4 kB / 408.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.2218, allocations: 0 / 408.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.966e-05/0.2218, allocations: 16 kB / 408.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.2218, allocations: 4 kB / 408.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008411/0.2227, allocations: 421.9 kB / 408.6 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.2247, allocations: 1.245 MB / 409.9 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000664/0.2254, allocations: 348.2 kB / 410.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.2258, allocations: 192.8 kB / 410.4 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.2258, allocations: 16.08 kB / 410.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.2259, allocations: 34.56 kB / 410.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.754e-06/0.2259, allocations: 0 / 410.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004762/0.2306, allocations: 1.914 MB / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.2307, allocations: 92.84 kB / 412.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.231, allocations: 242.1 kB / 412.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.115e-05/0.2311, allocations: 33.7 kB / 412.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.395e-05/0.2311, allocations: 132.7 kB / 412.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.2313, allocations: 153.8 kB / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.2314, allocations: 82.11 kB / 413.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.2315, allocations: 334.8 kB / 413.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003762/0.2319, allocations: 168.8 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004039/0.2323, allocations: 225.9 kB / 413.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006829/0.233, allocations: 351.2 kB / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.233, allocations: 0 / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001106/0.2341, allocations: 0.559 MB / 414.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.2341, allocations: 4 kB / 414.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2342, allocations: 0 / 414.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000733/0.2349, allocations: 252.7 kB / 415 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.2352, allocations: 51.91 kB / 415 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003816/0.239, allocations: 2.889 MB / 417.9 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.2393, allocations: 24.08 kB / 417.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.2393, allocations: 19.98 kB / 417.9 MB, free: 7.75 MB / 334.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.0001672/0.2395, allocations: 165.6 kB / 418.1 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.403e-05/0.2396, allocations: 27.62 kB / 418.1 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.922e-05/0.2397, allocations: 42.98 kB / 418.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.2397, allocations: 3.984 kB / 418.2 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2397, allocations: 3.984 kB / 418.2 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.2398, allocations: 136.8 kB / 418.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.178e-05/0.2399, allocations: 15.98 kB / 418.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.2402, allocations: 23.92 kB / 418.4 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.2403, allocations: 39.94 kB / 418.4 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001798/0.2421, allocations: 0.6731 MB / 419.1 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001347/0.2435, allocations: 0.8048 MB / 419.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003718/0.2439, allocations: 176.3 kB / 420 MB, free: 5.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001837/0.2441, allocations: 176.3 kB / 420.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of Backend: time 3.51e-07/0.2441, allocations: 0 / 420.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.2453, allocations: 0.5923 MB / 420.8 MB, free: 4.812 MB / 334.1 MB Notification: Performance of SimCode: time 0.001187/0.2466, allocations: 1.222 MB / 422 MB, free: 3.539 MB / 334.1 MB Notification: Performance of Templates: time 0.01098/0.2575, allocations: 6.735 MB / 428.8 MB, free: 12.82 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)