Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001253/0.001253, allocations: 110.7 kB / 18.4 MB, free: 4.656 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.001262/0.001262, allocations: 190 kB / 19.34 MB, free: 3.734 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.24/1.24, allocations: 205.1 MB / 225.2 MB, free: 12.21 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: 47.94 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07173/0.07289, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00327/0.07619, allocations: 2.337 MB / 378.1 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.07779, allocations: 0.9721 MB / 379.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.07796, allocations: 7.938 kB / 379.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001769/0.07814, allocations: 39.59 kB / 379.2 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004679/0.07862, allocations: 139.2 kB / 379.3 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.07897, allocations: 171.7 kB / 379.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000412/0.07939, allocations: 426.8 kB / 379.9 MB, free: 492 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.07955, allocations: 64.69 kB / 379.9 MB, free: 424 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.07978, allocations: 183.5 kB / 380.1 MB, free: 240 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002768/0.08006, allocations: 219.2 kB / 380.3 MB, free: 20 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1419/0.222, allocations: 30.95 kB / 380.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003473/0.2224, allocations: 118.5 kB / 380.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.2225, allocations: 96.25 kB / 380.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2227, allocations: 165.9 kB / 380.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005762/0.2233, allocations: 451.3 kB / 381.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2233, allocations: 2.656 kB / 381.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2233, allocations: 0 / 381.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.2234, allocations: 0 / 381.2 MB, free: 10.74 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.001177/0.2245, allocations: 0.6351 MB / 381.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2246, allocations: 8.25 kB / 381.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003263/0.2249, allocations: 52.88 kB / 381.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003976/0.2253, allocations: 302.4 kB / 382.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.2254, allocations: 88.28 kB / 382.3 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.794e-05/0.2255, allocations: 32.03 kB / 382.3 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006763/0.2262, allocations: 379.3 kB / 382.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.2262, allocations: 8.234 kB / 382.7 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.742e-05/0.2263, allocations: 10.69 kB / 382.7 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.2263, allocations: 6.531 kB / 382.7 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009378/0.2272, allocations: 419.9 kB / 383.1 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/0.2292, allocations: 1.234 MB / 384.3 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006364/0.2298, allocations: 358.9 kB / 384.7 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.2302, allocations: 186.8 kB / 384.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.2302, allocations: 3.625 kB / 384.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.2303, allocations: 40.19 kB / 384.9 MB, free: 9.152 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.863e-06/0.2303, allocations: 4 kB / 384.9 MB, free: 9.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004562/0.2348, allocations: 1.917 MB / 386.8 MB, free: 8.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.362e-05/0.2349, allocations: 86.05 kB / 386.9 MB, free: 8.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002648/0.2352, allocations: 241.6 kB / 387.1 MB, free: 7.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.2352, allocations: 37.42 kB / 387.2 MB, free: 7.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.756e-05/0.2353, allocations: 139.1 kB / 387.3 MB, free: 7.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.88e-05/0.2354, allocations: 153 kB / 387.5 MB, free: 7.617 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.2355, allocations: 84.64 kB / 387.6 MB, free: 7.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.012e-05/0.2356, allocations: 341.2 kB / 387.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003705/0.2359, allocations: 166.6 kB / 388 MB, free: 7.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003847/0.2363, allocations: 226.9 kB / 388.3 MB, free: 7.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006483/0.237, allocations: 349.9 kB / 388.6 MB, free: 6.918 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.237, allocations: 1.188 kB / 388.6 MB, free: 6.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001059/0.2381, allocations: 0.5538 MB / 389.2 MB, free: 6.695 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2381, allocations: 7.391 kB / 389.2 MB, free: 6.695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.2381, allocations: 1.062 kB / 389.2 MB, free: 6.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000708/0.2388, allocations: 257.9 kB / 389.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.2391, allocations: 52.72 kB / 389.5 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003458/0.2425, allocations: 2.884 MB / 392.4 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.2428, allocations: 34.72 kB / 392.4 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.986e-05/0.2428, allocations: 18.45 kB / 392.4 MB, free: 4.434 MB / 318.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.0001438/0.243, allocations: 152 kB / 392.6 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.232e-05/0.2431, allocations: 25.48 kB / 392.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.746e-05/0.2432, allocations: 42.14 kB / 392.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2432, allocations: 2.344 kB / 392.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2432, allocations: 0.9375 kB / 392.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.2433, allocations: 139.2 kB / 392.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.83e-05/0.2434, allocations: 14.84 kB / 392.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002796/0.2437, allocations: 24.06 kB / 392.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.2438, allocations: 40.09 kB / 392.8 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001759/0.2456, allocations: 0.6839 MB / 393.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001232/0.2468, allocations: 0.7927 MB / 394.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003508/0.2472, allocations: 177.5 kB / 394.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001713/0.2473, allocations: 179.2 kB / 394.7 MB, free: 3.254 MB / 318.1 MB Notification: Performance of Backend: time 4.41e-07/0.2474, allocations: 4 kB / 394.7 MB, free: 3.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.2486, allocations: 0.5883 MB / 395.3 MB, free: 2.914 MB / 318.1 MB Notification: Performance of SimCode: time 0.001046/0.2497, allocations: 1.219 MB / 396.5 MB, free: 1.988 MB / 318.1 MB Notification: Performance of Templates: time 0.01117/0.2608, allocations: 6.74 MB / 403.2 MB, free: 60 kB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)