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.0009608/0.0009608, allocations: 108.4 kB / 18.4 MB, free: 4.688 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.001063/0.001063, allocations: 186.2 kB / 19.34 MB, free: 3.766 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.263/1.263, 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.001041/0.001041, allocations: 47.94 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06965/0.0707, allocations: 46.63 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002919/0.07364, allocations: 2.341 MB / 378.2 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.07526, allocations: 0.9604 MB / 379.1 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.07541, allocations: 4 kB / 379.1 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001974/0.07563, allocations: 47.58 kB / 379.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004969/0.07614, allocations: 131.2 kB / 379.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003279/0.07648, allocations: 175.7 kB / 379.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003574/0.07685, allocations: 422.7 kB / 379.9 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.077, allocations: 72.67 kB / 380 MB, free: 440 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.07719, allocations: 183.5 kB / 380.1 MB, free: 256 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.07745, allocations: 215.3 kB / 380.3 MB, free: 40 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.774e-05/0.07751, allocations: 32 kB / 380.4 MB, free: 8 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1476/0.2251, allocations: 119 kB / 380.5 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.2253, allocations: 97.59 kB / 380.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.2255, allocations: 165.1 kB / 380.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000485/0.226, allocations: 449.1 kB / 381.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.226, allocations: 1.281 kB / 381.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.226, allocations: 1.25 kB / 381.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.226, allocations: 0 / 381.2 MB, free: 10.14 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.0009279/0.2269, allocations: 0.6349 MB / 381.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.227, allocations: 8.25 kB / 381.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002899/0.2273, allocations: 52.89 kB / 381.9 MB, free: 9.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003813/0.2277, allocations: 305.8 kB / 382.2 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.516e-05/0.2278, allocations: 85.11 kB / 382.3 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.346e-05/0.2278, allocations: 25.75 kB / 382.3 MB, free: 9.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006361/0.2285, allocations: 383 kB / 382.7 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.2285, allocations: 7.594 kB / 382.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.2285, allocations: 11.75 kB / 382.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.2286, allocations: 8.031 kB / 382.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008882/0.2295, allocations: 416.9 kB / 383.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.2313, allocations: 1.233 MB / 384.3 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006378/0.232, allocations: 356.2 kB / 384.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003559/0.2323, allocations: 184.1 kB / 384.9 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.2324, allocations: 6.062 kB / 384.9 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.774e-05/0.2324, allocations: 41.89 kB / 384.9 MB, free: 8.719 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.644e-06/0.2324, allocations: 0 / 384.9 MB, free: 8.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004405/0.2368, allocations: 1.922 MB / 386.8 MB, free: 7.879 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.2369, allocations: 86.7 kB / 386.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002542/0.2371, allocations: 245.5 kB / 387.2 MB, free: 7.637 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.2372, allocations: 33.11 kB / 387.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.45e-05/0.2372, allocations: 136.1 kB / 387.3 MB, free: 7.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.679e-05/0.2373, allocations: 155.6 kB / 387.5 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.2375, allocations: 84.05 kB / 387.6 MB, free: 7.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.788e-05/0.2375, allocations: 337 kB / 387.9 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/0.2379, allocations: 169.4 kB / 388 MB, free: 6.938 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003755/0.2383, allocations: 229.7 kB / 388.3 MB, free: 6.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006349/0.2389, allocations: 350.3 kB / 388.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2389, allocations: 0.8438 kB / 388.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001044/0.24, allocations: 0.5551 MB / 389.2 MB, free: 6.445 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.24, allocations: 6 kB / 389.2 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.24, allocations: 0.6094 kB / 389.2 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000707/0.2407, allocations: 261 kB / 389.4 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.241, allocations: 47.2 kB / 389.5 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003334/0.2443, allocations: 2.883 MB / 392.4 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.2446, allocations: 30.72 kB / 392.4 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.2446, allocations: 13.83 kB / 392.4 MB, free: 4.191 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.0001338/0.2448, allocations: 157.2 kB / 392.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.057e-05/0.2448, allocations: 24.55 kB / 392.6 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.964e-05/0.2449, allocations: 42.25 kB / 392.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.351e-06/0.245, allocations: 5.672 kB / 392.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.245, allocations: 5.188 kB / 392.6 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.2451, allocations: 137.8 kB / 392.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.993e-05/0.2451, allocations: 11.73 kB / 392.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.2454, allocations: 25.36 kB / 392.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.2455, allocations: 40.22 kB / 392.8 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001678/0.2472, allocations: 0.6791 MB / 393.5 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001201/0.2484, allocations: 0.7903 MB / 394.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003549/0.2488, allocations: 182.6 kB / 394.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001747/0.249, allocations: 183.3 kB / 394.7 MB, free: 3.004 MB / 318.1 MB Notification: Performance of Backend: time 4.41e-07/0.249, allocations: 0 / 394.7 MB, free: 3.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.2502, allocations: 0.5919 MB / 395.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of SimCode: time 0.001036/0.2513, allocations: 1.222 MB / 396.5 MB, free: 1.738 MB / 318.1 MB Notification: Performance of Templates: time 0.01676/0.268, allocations: 6.988 MB / 403.5 MB, free: 15.64 MB / 334.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)