Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009472/0.0009472, allocations: 96.88 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 201.1 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.7 MB / 247.5 MB, free: 9.305 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002464/0.0002465, allocations: 4 kB / 308.4 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1064, allocations: 51.53 MB / 359.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003467/0.11, allocations: 2.525 MB / 362.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002466/0.1125, allocations: 1.264 MB / 363.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003383/0.1128, allocations: 8 kB / 363.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004088/0.1132, allocations: 71.55 kB / 363.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008224/0.1141, allocations: 198.3 kB / 364 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000681/0.1148, allocations: 215.7 kB / 364.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009841/0.1158, allocations: 0.6743 MB / 364.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.1161, allocations: 112 kB / 365 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006016/0.1167, allocations: 291 kB / 365.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005963/0.1173, allocations: 346.9 kB / 365.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001545/0.1175, allocations: 28 kB / 365.6 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003445/0.1178, allocations: 127.9 kB / 365.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002111/0.118, allocations: 135.6 kB / 365.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003301/0.1184, allocations: 268.4 kB / 366.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006365/0.119, allocations: 0.5146 MB / 366.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.119, allocations: 0 / 366.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.119, allocations: 0 / 366.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.221e-05/0.1191, allocations: 0 / 366.6 MB, free: 6.23 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001866/0.1209, allocations: 0.7604 MB / 367.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.121, allocations: 8.031 kB / 367.4 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005177/0.1215, allocations: 76.34 kB / 367.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006217/0.1222, allocations: 366.3 kB / 367.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001602/0.1223, allocations: 104.9 kB / 367.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1225, allocations: 48.36 kB / 368 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.1237, allocations: 0.5606 MB / 368.6 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.1237, allocations: 3.906 kB / 368.6 MB, free: 4.207 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.995e-05/0.1238, allocations: 16 kB / 368.6 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.1238, allocations: 15.98 kB / 368.6 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.1252, allocations: 0.6284 MB / 369.2 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002716/0.128, allocations: 1.334 MB / 370.6 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.1292, allocations: 0.5289 MB / 371.1 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006592/0.1299, allocations: 314.3 kB / 371.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.778e-05/0.13, allocations: 12.5 kB / 371.4 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.13, allocations: 43.12 kB / 371.4 MB, free: 1.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.254e-06/0.13, allocations: 0 / 371.4 MB, free: 1.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1763/0.3063, allocations: 2.833 MB / 374.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.3064, allocations: 87.11 kB / 374.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/0.307, allocations: 351.3 kB / 374.7 MB, free: 18.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.821e-05/0.307, allocations: 48.25 kB / 374.8 MB, free: 18.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3072, allocations: 168.9 kB / 374.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001967/0.3074, allocations: 229.7 kB / 375.1 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3075, allocations: 59.33 kB / 375.2 MB, free: 18.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.451e-05/0.3076, allocations: 351.2 kB / 375.5 MB, free: 17.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/0.3082, allocations: 278.6 kB / 375.8 MB, free: 17.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006511/0.3089, allocations: 335 kB / 376.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.31, allocations: 0.5016 MB / 376.6 MB, free: 17.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.31, allocations: 1.156 kB / 376.6 MB, free: 17.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001777/0.3118, allocations: 0.8457 MB / 377.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3118, allocations: 5.094 kB / 377.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3119, allocations: 1.031 kB / 377.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001071/0.3129, allocations: 443 kB / 377.9 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003926/0.3133, allocations: 90.38 kB / 378 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/0.3145, allocations: 1.027 MB / 379 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005469/0.315, allocations: 91.55 kB / 379.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.976e-05/0.3151, allocations: 25.8 kB / 379.2 MB, free: 16.54 MB / 302.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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002543/0.3154, allocations: 193.5 kB / 379.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.941e-05/0.3155, allocations: 43.59 kB / 379.4 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.3156, allocations: 64.95 kB / 379.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.3156, allocations: 6.75 kB / 379.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.3157, allocations: 1.078 kB / 379.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3157, allocations: 4.438 kB / 379.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003134/0.3188, allocations: 1.731 MB / 381.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3188, allocations: 0 / 381.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.3192, allocations: 94.44 kB / 381.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009609/0.3202, allocations: 411.1 kB / 381.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.548e-05/0.3203, allocations: 23.77 kB / 381.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.3213, allocations: 0.9825 MB / 382.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3213, allocations: 0 / 382.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.3237, allocations: 1.241 MB / 383.9 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002543/0.324, allocations: 203.9 kB / 384.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.584e-05/0.3241, allocations: 22.86 kB / 384.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000483/0.3246, allocations: 74.3 kB / 384.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.3248, allocations: 87.53 kB / 384.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.523e-05/0.3249, allocations: 28.41 kB / 384.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003195/0.3252, allocations: 256.6 kB / 384.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.062e-06/0.3252, allocations: 0 / 384.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005649/0.3258, allocations: 142.1 kB / 384.7 MB, free: 13.65 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008848/0.3267, allocations: 396.8 kB / 385.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.3283, allocations: 0.681 MB / 385.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3283, allocations: 1.156 kB / 385.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008465/0.3292, allocations: 389.4 kB / 386.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/0.3298, allocations: 59.33 kB / 386.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.3327, allocations: 1.477 MB / 387.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.333, allocations: 0.826 MB / 388.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002243/0.3332, allocations: 54.05 kB / 388.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of SimCode: time 1.643e-06/0.3332, allocations: 0 / 388.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Templates: time 0.01274/0.346, allocations: 7.981 MB / 396.6 MB, free: 8.328 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time