Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 113.2 kB / 17.73 MB, free: 5.34 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.001856/0.001856, allocations: 188.2 kB / 18.67 MB, free: 4.414 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.494/1.494, allocations: 205.1 MB / 224.5 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.001178/0.001178, allocations: 51.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1216, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00475/0.1264, allocations: 2.731 MB / 377.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.1286, allocations: 1.128 MB / 379 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001864/0.1288, allocations: 4 kB / 379 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003196/0.1292, allocations: 75.36 kB / 379.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006995/0.1299, allocations: 194.8 kB / 379.3 MB, free: 440 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.1304, allocations: 243.6 kB / 379.5 MB, free: 196 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2327/0.3631, allocations: 0.6413 MB / 380.1 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002622/0.3634, allocations: 126.2 kB / 380.3 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000502/0.3639, allocations: 298.6 kB / 380.6 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004527/0.3643, allocations: 345.2 kB / 380.9 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.041e-05/0.3644, allocations: 51 kB / 380.9 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003357/0.3648, allocations: 136.9 kB / 381.1 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.365, allocations: 153.8 kB / 381.2 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002727/0.3653, allocations: 244.5 kB / 381.5 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009899/0.3663, allocations: 0.6459 MB / 382.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3663, allocations: 4.188 kB / 382.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3663, allocations: 0 / 382.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.3663, allocations: 0 / 382.1 MB, free: 9.59 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001702/0.368, allocations: 0.7962 MB / 382.9 MB, free: 9.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.3681, allocations: 13.61 kB / 382.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003829/0.3685, allocations: 64.36 kB / 383 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.3691, allocations: 368.1 kB / 383.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.3692, allocations: 99.42 kB / 383.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.396e-05/0.3693, allocations: 48.67 kB / 383.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.3707, allocations: 0.5575 MB / 384 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.3707, allocations: 1.094 kB / 384 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.193e-05/0.3708, allocations: 18.52 kB / 384.1 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.3708, allocations: 11.72 kB / 384.1 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001515/0.3723, allocations: 0.6371 MB / 384.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.3751, allocations: 1.282 MB / 386 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.3764, allocations: 0.543 MB / 386.5 MB, free: 7.895 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006409/0.377, allocations: 322.2 kB / 386.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.669e-05/0.3771, allocations: 10.75 kB / 386.9 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.3771, allocations: 41.67 kB / 386.9 MB, free: 7.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 3.296e-06/0.3771, allocations: 0 / 386.9 MB, free: 7.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.0071/0.3842, allocations: 2.869 MB / 389.8 MB, free: 6.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.3843, allocations: 84.64 kB / 389.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004605/0.3848, allocations: 336.4 kB / 390.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.38e-05/0.3849, allocations: 44.98 kB / 390.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.385, allocations: 167.7 kB / 390.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.3851, allocations: 223.1 kB / 390.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002251/0.3854, allocations: 123 kB / 390.7 MB, free: 5.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.634e-05/0.3855, allocations: 347.7 kB / 391.1 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006203/0.3861, allocations: 288.2 kB / 391.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006915/0.3868, allocations: 360.2 kB / 391.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.3881, allocations: 0.522 MB / 392.2 MB, free: 4.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3881, allocations: 3.875 kB / 392.2 MB, free: 4.883 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001964/0.3901, allocations: 0.8794 MB / 393.1 MB, free: 4.551 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.3901, allocations: 5.531 kB / 393.1 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.3901, allocations: 5.094 kB / 393.1 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.3913, allocations: 474.3 kB / 393.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003964/0.3917, allocations: 86.17 kB / 393.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/0.393, allocations: 1.076 MB / 394.7 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000605/0.3936, allocations: 56.48 kB / 394.8 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.411e-05/0.3937, allocations: 30.03 kB / 394.8 MB, free: 3.664 MB / 318.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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003498/0.394, allocations: 182 kB / 395 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.3942, allocations: 44.06 kB / 395 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001622/0.3943, allocations: 63.89 kB / 395.1 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.3943, allocations: 11.22 kB / 395.1 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/0.3944, allocations: 0 / 395.1 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.3944, allocations: 3.656 kB / 395.1 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003722/0.3981, allocations: 1.759 MB / 396.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3981, allocations: 3.938 kB / 396.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.3985, allocations: 79.3 kB / 397 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.3997, allocations: 445.6 kB / 397.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-05/0.3997, allocations: 26.66 kB / 397.4 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001366/0.4011, allocations: 1.047 MB / 398.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.4011, allocations: 0 / 398.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.4038, allocations: 1.305 MB / 399.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002314/0.404, allocations: 179 kB / 400 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.112e-05/0.4041, allocations: 13.62 kB / 400 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004149/0.4045, allocations: 61.8 kB / 400 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002532/0.4048, allocations: 84.59 kB / 400.1 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.85e-05/0.4049, allocations: 23.69 kB / 400.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004032/0.4053, allocations: 246.9 kB / 400.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4053, allocations: 0 / 400.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007523/0.406, allocations: 147.2 kB / 400.5 MB, free: 0.8242 MB / 318.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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003068/0.4064, allocations: 144.9 kB / 400.7 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.408, allocations: 0.722 MB / 401.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.408, allocations: 0 / 401.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008132/0.4088, allocations: 391.1 kB / 401.8 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.4093, allocations: 56.08 kB / 401.8 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/0.412, allocations: 1.1 MB / 402.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.4126, allocations: 0.8285 MB / 403.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002696/0.4128, allocations: 62.42 kB / 403.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.413, allocations: 45.78 kB / 403.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of SimCode: time 1.613e-06/0.413, allocations: 0 / 403.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Templates: time 0.02066/0.4337, allocations: 10.06 MB / 413.9 MB, free: 7.539 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi