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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001382/0.001382, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 214.5 kB / 24.48 MB, free: 3.836 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 230.5 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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=500,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=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 63.91 kB / 379 MB, free: 2.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2852, allocations: 53.4 MB / 432.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004562/0.2897, allocations: 2.684 MB / 435.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.2922, allocations: 1.221 MB / 436.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002024/0.2924, allocations: 7.938 kB / 436.3 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004009/0.2928, allocations: 95.27 kB / 436.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006967/0.2935, allocations: 214.3 kB / 436.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007227/0.2942, allocations: 259.5 kB / 436.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009307/0.2952, allocations: 0.7094 MB / 437.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.2954, allocations: 91.55 kB / 437.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005011/0.2959, allocations: 327.1 kB / 438 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004892/0.2964, allocations: 358.7 kB / 438.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.2965, allocations: 64 kB / 438.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003081/0.2968, allocations: 144 kB / 438.5 MB, free: 368 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.297, allocations: 167.5 kB / 438.7 MB, free: 200 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002565/0.2973, allocations: 231.1 kB / 438.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008398/0.2981, allocations: 0.723 MB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2981, allocations: 0 / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2981, allocations: 0 / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.2981, allocations: 3.938 kB / 439.6 MB, free: 15.24 MB / 350.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.001716/0.2998, allocations: 0.7816 MB / 440.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.2999, allocations: 8.031 kB / 440.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004464/0.3003, allocations: 76.62 kB / 440.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000702/0.301, allocations: 312.7 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000194/0.3012, allocations: 156.4 kB / 441 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.68e-05/0.3013, allocations: 48.31 kB / 441 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.3025, allocations: 0.5895 MB / 441.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.3025, allocations: 0 / 441.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.415e-05/0.3026, allocations: 16 kB / 441.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.3026, allocations: 12 kB / 441.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.304, allocations: 0.6011 MB / 442.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.3065, allocations: 1.06 MB / 443.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.3077, allocations: 494.3 kB / 443.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006441/0.3083, allocations: 278.2 kB / 444 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.463e-05/0.3084, allocations: 8.688 kB / 444.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/0.3084, allocations: 46.94 kB / 444.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.605e-06/0.3084, allocations: 0 / 444.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007108/0.3155, allocations: 2.426 MB / 446.5 MB, free: 8.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.275e-05/0.3156, allocations: 89.7 kB / 446.6 MB, free: 8.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004733/0.3161, allocations: 321.8 kB / 446.9 MB, free: 7.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.941e-05/0.3161, allocations: 49.69 kB / 447 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.3163, allocations: 181.6 kB / 447.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002186/0.3165, allocations: 234 kB / 447.4 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/0.3167, allocations: 130.2 kB / 447.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.3169, allocations: 346.8 kB / 447.8 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006256/0.3176, allocations: 269.1 kB / 448.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007004/0.3183, allocations: 360.2 kB / 448.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.3194, allocations: 495.5 kB / 448.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3194, allocations: 8 kB / 449 MB, free: 5.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001862/0.3213, allocations: 0.8103 MB / 449.8 MB, free: 4.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.3213, allocations: 7.938 kB / 449.8 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.3213, allocations: 4 kB / 449.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001136/0.3224, allocations: 444.4 kB / 450.2 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/0.3229, allocations: 83.88 kB / 450.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.3243, allocations: 1.026 MB / 451.3 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.3247, allocations: 59.98 kB / 451.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.513e-05/0.3248, allocations: 27.98 kB / 451.4 MB, free: 3.16 MB / 350.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.000289/0.3251, allocations: 181.7 kB / 451.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.3252, allocations: 39.77 kB / 451.6 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001697/0.3254, allocations: 71.67 kB / 451.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.3254, allocations: 4 kB / 451.7 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3254, allocations: 4 kB / 451.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3254, allocations: 7.969 kB / 451.7 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003304/0.3287, allocations: 1.505 MB / 453.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.3287, allocations: 8.031 kB / 453.2 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003859/0.3291, allocations: 75.88 kB / 453.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009997/0.3301, allocations: 412.5 kB / 453.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/0.3302, allocations: 20.05 kB / 453.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.3315, allocations: 0.9828 MB / 454.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3315, allocations: 4.031 kB / 454.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/0.3341, allocations: 1.204 MB / 455.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002817/0.3343, allocations: 111.7 kB / 456 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.3345, allocations: 20.12 kB / 456 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004486/0.3349, allocations: 51.94 kB / 456.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.3351, allocations: 96.41 kB / 456.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.363e-05/0.3352, allocations: 27.98 kB / 456.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003195/0.3355, allocations: 237.2 kB / 456.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3355, allocations: 0 / 456.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005373/0.336, allocations: 143.9 kB / 456.6 MB, free: 13.88 MB / 366.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.001538/0.3376, allocations: 422.1 kB / 457 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.3392, allocations: 0.639 MB / 457.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3392, allocations: 0 / 457.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008464/0.3401, allocations: 340.6 kB / 458 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005442/0.3406, allocations: 68.53 kB / 458 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002841/0.3435, allocations: 1.179 MB / 459.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002286/0.3437, allocations: 221.9 kB / 459.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/0.3439, allocations: 59.39 kB / 459.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3439, allocations: 3.938 kB / 459.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of Templates: time 0.01243/0.3563, allocations: 8.178 MB / 467.7 MB, free: 2.852 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 8.411475852131844]