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.001636/0.001636, allocations: 113.4 kB / 17.99 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001714/0.001714, allocations: 217.7 kB / 18.92 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 247.1 MB, free: 9.062 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002337/0.002337, allocations: 69.23 kB / 307.1 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1112, allocations: 50.53 MB / 357.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005185/0.1164, allocations: 3.268 MB / 360.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.1188, allocations: 1.244 MB / 362.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002237/0.1191, allocations: 11.94 kB / 362.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000358/0.1195, allocations: 71.47 kB / 362.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004416/0.1199, allocations: 202.8 kB / 362.5 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005356/0.1205, allocations: 235.6 kB / 362.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009482/0.1214, allocations: 0.8428 MB / 363.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002658/0.1217, allocations: 137.1 kB / 363.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005877/0.1223, allocations: 382.7 kB / 364 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005339/0.1228, allocations: 414.5 kB / 364.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1229, allocations: 64 kB / 364.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.1232, allocations: 120 kB / 364.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002216/0.1234, allocations: 179.4 kB / 364.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003395/0.1238, allocations: 330.4 kB / 365.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006945/0.1245, allocations: 0.5848 MB / 365.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.1245, allocations: 3.984 kB / 365.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1245, allocations: 0 / 365.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.1245, allocations: 0 / 365.7 MB, free: 6.094 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.001993/0.1265, allocations: 0.9468 MB / 366.7 MB, free: 5.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.1266, allocations: 8.031 kB / 366.7 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003476/0.127, allocations: 84.16 kB / 366.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005484/0.1275, allocations: 386 kB / 367.1 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.734e-05/0.1276, allocations: 41.31 kB / 367.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.1277, allocations: 56.27 kB / 367.2 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.129, allocations: 0.6113 MB / 367.8 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.129, allocations: 4 kB / 367.8 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.51e-05/0.1291, allocations: 20 kB / 367.9 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.1291, allocations: 8 kB / 367.9 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.1305, allocations: 0.5855 MB / 368.5 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002654/0.1331, allocations: 1.363 MB / 369.8 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.1344, allocations: 0.5013 MB / 370.3 MB, free: 1.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006453/0.135, allocations: 310.4 kB / 370.6 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.102e-05/0.1351, allocations: 4.562 kB / 370.6 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.1352, allocations: 47.06 kB / 370.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.865e-06/0.1352, allocations: 0 / 370.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1677/0.3029, allocations: 2.889 MB / 373.6 MB, free: 19.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.303, allocations: 59.97 kB / 373.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004723/0.3035, allocations: 359.6 kB / 374 MB, free: 19.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.695e-05/0.3035, allocations: 52.91 kB / 374 MB, free: 19.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.3037, allocations: 197.6 kB / 374.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.3039, allocations: 255 kB / 374.5 MB, free: 19.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.3041, allocations: 136 kB / 374.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.985e-05/0.3042, allocations: 363.8 kB / 375 MB, free: 18.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006313/0.3048, allocations: 304.4 kB / 375.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006999/0.3056, allocations: 379.8 kB / 375.6 MB, free: 18.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009562/0.3065, allocations: 492.8 kB / 376.1 MB, free: 18.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3065, allocations: 0.5469 kB / 376.1 MB, free: 18.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001876/0.3084, allocations: 0.944 MB / 377 MB, free: 17.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.3085, allocations: 8.688 kB / 377.1 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3085, allocations: 5.094 kB / 377.1 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.3098, allocations: 0.5698 MB / 377.6 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.3102, allocations: 101.2 kB / 377.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.3116, allocations: 1.112 MB / 378.8 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007182/0.3124, allocations: 110 kB / 378.9 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-05/0.3124, allocations: 22.17 kB / 379 MB, free: 16.91 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.0002683/0.3127, allocations: 189.7 kB / 379.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.3128, allocations: 49.25 kB / 379.2 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001565/0.313, allocations: 80.52 kB / 379.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.313, allocations: 10.75 kB / 379.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.313, allocations: 1.062 kB / 379.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.313, allocations: 4.031 kB / 379.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00279/0.3158, allocations: 1.632 MB / 380.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3159, allocations: 1.25 kB / 380.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000425/0.3163, allocations: 90.3 kB / 381 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/0.3175, allocations: 0.5388 MB / 381.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.57e-05/0.3176, allocations: 27.73 kB / 381.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.319, allocations: 1.07 MB / 382.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.319, allocations: 2.078 kB / 382.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002551/0.3215, allocations: 1.316 MB / 384 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003012/0.3219, allocations: 195.5 kB / 384.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.322, allocations: 26.81 kB / 384.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006817/0.3227, allocations: 106.1 kB / 384.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000335/0.323, allocations: 129.2 kB / 384.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.51e-05/0.3231, allocations: 31.97 kB / 384.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002905/0.3234, allocations: 254.8 kB / 384.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3234, allocations: 0 / 384.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006219/0.324, allocations: 161.4 kB / 384.9 MB, free: 13.93 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.001341/0.3254, allocations: 396.6 kB / 385.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.3274, allocations: 0.8084 MB / 386.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3274, allocations: 0 / 386.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008845/0.3283, allocations: 440.2 kB / 386.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007936/0.3291, allocations: 122.4 kB / 386.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.3317, allocations: 1.672 MB / 388.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.332, allocations: 0.8599 MB / 389.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.3322, allocations: 54.36 kB / 389.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3322, allocations: 1.25 kB / 389.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of Templates: time 0.012/0.3442, allocations: 9.231 MB / 398.4 MB, free: 6.609 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches