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.0009296/0.0009297, allocations: 91.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 202.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.8 MB / 246.8 MB, free: 9.652 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002074/0.0002073, allocations: 4 kB / 307.7 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1004, allocations: 51.52 MB / 359.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003396/0.1038, allocations: 2.894 MB / 362.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.106, allocations: 1.228 MB / 363.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.1062, allocations: 7.938 kB / 363.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003174/0.1065, allocations: 71.53 kB / 363.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004165/0.1069, allocations: 186.8 kB / 363.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004961/0.1074, allocations: 247.6 kB / 363.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007388/0.1082, allocations: 0.7998 MB / 364.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002497/0.1085, allocations: 120.8 kB / 364.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005083/0.109, allocations: 342.7 kB / 365.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004392/0.1094, allocations: 378.6 kB / 365.5 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.122e-05/0.1095, allocations: 36 kB / 365.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002023/0.1097, allocations: 87.97 kB / 365.6 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.1099, allocations: 151.4 kB / 365.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002739/0.1102, allocations: 316.1 kB / 366.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006694/0.1109, allocations: 0.732 MB / 366.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1109, allocations: 0 / 366.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1109, allocations: 4 kB / 366.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1109, allocations: 0 / 366.8 MB, free: 5.473 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.001768/0.1127, allocations: 0.8769 MB / 367.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1127, allocations: 8.031 kB / 367.7 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003229/0.1131, allocations: 88.17 kB / 367.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005431/0.1136, allocations: 393.9 kB / 368.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.341e-05/0.1137, allocations: 37.31 kB / 368.2 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.1138, allocations: 52.38 kB / 368.3 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.115, allocations: 0.623 MB / 368.9 MB, free: 3.305 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.1151, allocations: 7.906 kB / 368.9 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-05/0.1152, allocations: 16 kB / 368.9 MB, free: 3.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.1152, allocations: 8 kB / 368.9 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.1165, allocations: 0.6089 MB / 369.5 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002599/0.1191, allocations: 1.398 MB / 370.9 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.1203, allocations: 0.509 MB / 371.4 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000615/0.1209, allocations: 322.4 kB / 371.7 MB, free: 380 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.1209, allocations: 8.547 kB / 371.8 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.121, allocations: 43.12 kB / 371.8 MB, free: 316 kB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.124e-06/0.121, allocations: 0 / 371.8 MB, free: 316 kB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1912/0.3122, allocations: 3.055 MB / 374.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.3123, allocations: 58.97 kB / 374.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005712/0.3128, allocations: 361.8 kB / 375.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.047e-05/0.3129, allocations: 56.81 kB / 375.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.3131, allocations: 196.3 kB / 375.5 MB, free: 18.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.3133, allocations: 258.6 kB / 375.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.3135, allocations: 66.44 kB / 375.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.3136, allocations: 362.8 kB / 376.2 MB, free: 17.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006742/0.3142, allocations: 317 kB / 376.5 MB, free: 17.53 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006904/0.3149, allocations: 376.8 kB / 376.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009752/0.3159, allocations: 0.5072 MB / 377.4 MB, free: 17.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3159, allocations: 1.375 kB / 377.4 MB, free: 17.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001946/0.3179, allocations: 0.9628 MB / 378.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.3179, allocations: 5.422 kB / 378.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3179, allocations: 0 / 378.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.3193, allocations: 0.5733 MB / 378.9 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/0.3197, allocations: 102 kB / 379 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001376/0.3211, allocations: 1.112 MB / 380.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007976/0.3219, allocations: 146.9 kB / 380.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.772e-05/0.322, allocations: 27.34 kB / 380.3 MB, free: 15.75 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.0002444/0.3223, allocations: 203.5 kB / 380.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.606e-05/0.3224, allocations: 52.31 kB / 380.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001769/0.3225, allocations: 76.27 kB / 380.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3226, allocations: 11.22 kB / 380.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.3226, allocations: 0 / 380.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.3226, allocations: 4.172 kB / 380.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002963/0.3256, allocations: 1.647 MB / 382.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3256, allocations: 0 / 382.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004307/0.326, allocations: 98.34 kB / 382.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.3272, allocations: 0.5338 MB / 382.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.038e-05/0.3273, allocations: 31.48 kB / 382.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.3287, allocations: 1.074 MB / 384 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3287, allocations: 1.188 kB / 384 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002548/0.3312, allocations: 1.342 MB / 385.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002322/0.3315, allocations: 197.7 kB / 385.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.3316, allocations: 25.53 kB / 385.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007237/0.3323, allocations: 142.4 kB / 385.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003013/0.3326, allocations: 130.3 kB / 385.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.819e-05/0.3327, allocations: 29.17 kB / 385.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002606/0.333, allocations: 255.4 kB / 386.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.333, allocations: 2.844 kB / 386.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005312/0.3335, allocations: 161.4 kB / 386.3 MB, free: 12.76 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.0008826/0.3344, allocations: 390.2 kB / 386.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.3361, allocations: 0.7883 MB / 387.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3361, allocations: 1.312 kB / 387.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008747/0.337, allocations: 449.4 kB / 387.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000731/0.3377, allocations: 108.2 kB / 388 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002716/0.3404, allocations: 1.777 MB / 389.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.3408, allocations: 0.8578 MB / 390.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002386/0.3411, allocations: 57.73 kB / 390.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.3412, allocations: 46.17 kB / 390.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3412, allocations: 0 / 390.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Templates: time 0.01662/0.3579, allocations: 12.77 MB / 403.5 MB, free: 1.145 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.0.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