Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001312/0.001312, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 62.67 kB / 307 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.107, allocations: 50.55 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005113/0.1122, allocations: 3.245 MB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002482/0.1147, allocations: 1.24 MB / 362 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002628/0.115, allocations: 15.94 kB / 362 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004044/0.1155, allocations: 95.14 kB / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004626/0.1159, allocations: 218.4 kB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005958/0.1165, allocations: 267.5 kB / 362.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008366/0.1174, allocations: 0.8505 MB / 363.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000268/0.1177, allocations: 133.2 kB / 363.6 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005659/0.1182, allocations: 378.9 kB / 364 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005279/0.1188, allocations: 410.5 kB / 364.4 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.1189, allocations: 64 kB / 364.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002547/0.1192, allocations: 127.9 kB / 364.5 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000226/0.1194, allocations: 171.5 kB / 364.7 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003421/0.1198, allocations: 326.4 kB / 365 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008631/0.1206, allocations: 0.7868 MB / 365.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1207, allocations: 4 kB / 365.8 MB, free: 5.742 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1207, allocations: 4 kB / 365.8 MB, free: 5.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.1207, allocations: 0 / 365.8 MB, free: 5.738 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.002064/0.1228, allocations: 0.939 MB / 366.8 MB, free: 4.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.1228, allocations: 8.031 kB / 366.8 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003436/0.1231, allocations: 84.16 kB / 366.8 MB, free: 4.656 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005314/0.1237, allocations: 390 kB / 367.2 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/0.1237, allocations: 41.36 kB / 367.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.1239, allocations: 52.28 kB / 367.3 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.1251, allocations: 0.6113 MB / 367.9 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.1251, allocations: 7.938 kB / 367.9 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-05/0.1252, allocations: 16 kB / 368 MB, free: 3.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.1252, allocations: 12 kB / 368 MB, free: 3.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.1266, allocations: 0.5933 MB / 368.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002594/0.1292, allocations: 1.355 MB / 369.9 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.1304, allocations: 0.4951 MB / 370.4 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006399/0.1311, allocations: 314.4 kB / 370.7 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.219e-05/0.1311, allocations: 8.562 kB / 370.7 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.1312, allocations: 39.06 kB / 370.8 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 3.967e-06/0.1312, allocations: 3.984 kB / 370.8 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1587/0.2898, allocations: 2.893 MB / 373.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.2899, allocations: 62.45 kB / 373.7 MB, free: 19.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.2904, allocations: 365 kB / 374.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.34e-05/0.2905, allocations: 53.48 kB / 374.1 MB, free: 19.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.2907, allocations: 195.6 kB / 374.3 MB, free: 18.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/0.2909, allocations: 257.2 kB / 374.6 MB, free: 18.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002371/0.2911, allocations: 131.6 kB / 374.7 MB, free: 18.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.336e-05/0.2912, allocations: 362.2 kB / 375.1 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006688/0.2919, allocations: 309.1 kB / 375.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000613/0.2925, allocations: 375.2 kB / 375.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009299/0.2935, allocations: 488.3 kB / 376.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2935, allocations: 1.25 kB / 376.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002114/0.2956, allocations: 0.9461 MB / 377.1 MB, free: 17.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.2956, allocations: 6.062 kB / 377.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.2957, allocations: 0.7031 kB / 377.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00159/0.2973, allocations: 0.5705 MB / 377.7 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003691/0.2976, allocations: 97.05 kB / 377.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.2991, allocations: 1.11 MB / 378.9 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007507/0.2998, allocations: 111.5 kB / 379 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.885e-05/0.2999, allocations: 23.19 kB / 379.1 MB, free: 16.52 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: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 {(3,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0002665/0.3002, allocations: 190.3 kB / 379.2 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.3003, allocations: 49.22 kB / 379.3 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/0.3004, allocations: 76.72 kB / 379.4 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.3005, allocations: 15.44 kB / 379.4 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/0.3005, allocations: 3.828 kB / 379.4 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.3005, allocations: 5.359 kB / 379.4 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/0.3033, allocations: 1.632 MB / 381 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3033, allocations: 0 / 381 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004274/0.3038, allocations: 93.77 kB / 381.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/0.305, allocations: 0.5338 MB / 381.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.031e-05/0.3051, allocations: 28.88 kB / 381.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.3065, allocations: 1.072 MB / 382.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3066, allocations: 0 / 382.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002584/0.3092, allocations: 1.318 MB / 384.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002613/0.3094, allocations: 195.5 kB / 384.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.3096, allocations: 26.73 kB / 384.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006787/0.3103, allocations: 100.9 kB / 384.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003174/0.3106, allocations: 132.7 kB / 384.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.754e-05/0.3107, allocations: 28.56 kB / 384.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002976/0.311, allocations: 259 kB / 384.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.311, allocations: 3.5 kB / 384.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006297/0.3116, allocations: 164.1 kB / 385 MB, free: 13.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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 {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001348/0.313, allocations: 388.1 kB / 385.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.3148, allocations: 0.8083 MB / 386.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3148, allocations: 0 / 386.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008509/0.3157, allocations: 438 kB / 386.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007536/0.3164, allocations: 120.7 kB / 386.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.3189, allocations: 1.432 MB / 388.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.3192, allocations: 0.8654 MB / 389 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.3194, allocations: 44.3 kB / 389 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3195, allocations: 47.7 kB / 389.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3195, allocations: 1.188 kB / 389.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of Templates: time 0.01757/0.3371, allocations: 13.67 MB / 402.7 MB, free: 1.758 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches