Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 117.5 kB / 16.63 MB, free: 6.812 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.001179/0.001179, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 43.27 kB / 300.1 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09497, allocations: 49.45 MB / 349.6 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004172/0.09918, allocations: 3.118 MB / 352.7 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.1009, allocations: 1.036 MB / 353.7 MB, free: 352 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.1011, allocations: 11.94 kB / 353.7 MB, free: 340 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002599/0.1014, allocations: 59.61 kB / 353.8 MB, free: 280 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002527/0.1016, allocations: 134.9 kB / 353.9 MB, free: 144 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005634/0.1022, allocations: 251.6 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006762/0.1029, allocations: 0.7882 MB / 355 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.1031, allocations: 133.1 kB / 355.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003964/0.1035, allocations: 358.8 kB / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004035/0.104, allocations: 382.7 kB / 355.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.193e-05/0.1041, allocations: 60 kB / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001852/0.1042, allocations: 111.9 kB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.1044, allocations: 155.5 kB / 356.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.1047, allocations: 298.5 kB / 356.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006074/0.1053, allocations: 0.709 MB / 357.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1053, allocations: 3.938 kB / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1053, allocations: 0 / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1053, allocations: 0 / 357.1 MB, free: 12.91 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001651/0.107, allocations: 0.8924 MB / 358 MB, free: 11.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.107, allocations: 8.031 kB / 358 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.1072, allocations: 60.19 kB / 358.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004154/0.1076, allocations: 363.7 kB / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.504e-05/0.1076, allocations: 29.38 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.1077, allocations: 48.28 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.1088, allocations: 0.6152 MB / 359.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.1089, allocations: 8 kB / 359.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.942e-05/0.1089, allocations: 20 kB / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.109, allocations: 11.94 kB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.1102, allocations: 0.605 MB / 359.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.1124, allocations: 1.328 MB / 361.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009366/0.1134, allocations: 467.7 kB / 361.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005654/0.1139, allocations: 306.4 kB / 361.9 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.913e-05/0.114, allocations: 4.562 kB / 361.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.114, allocations: 43.11 kB / 361.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.913e-06/0.114, allocations: 4 kB / 361.9 MB, free: 7.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.006178/0.1202, allocations: 2.871 MB / 364.8 MB, free: 4.934 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.1203, allocations: 55.97 kB / 364.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.1206, allocations: 329.7 kB / 365.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.131e-05/0.1207, allocations: 45.7 kB / 365.2 MB, free: 4.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.1209, allocations: 201.2 kB / 365.4 MB, free: 4.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.121, allocations: 224.9 kB / 365.6 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002297/0.1213, allocations: 130.5 kB / 365.8 MB, free: 3.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1214, allocations: 358.7 kB / 366.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000623/0.1221, allocations: 321.8 kB / 366.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006567/0.1227, allocations: 385 kB / 366.8 MB, free: 2.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009865/0.1237, allocations: 0.5069 MB / 367.3 MB, free: 2.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1237, allocations: 0 / 367.3 MB, free: 2.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001778/0.1255, allocations: 0.9233 MB / 368.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.1256, allocations: 10.81 kB / 368.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.1256, allocations: 0 / 368.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/0.1268, allocations: 0.7307 MB / 369 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000397/0.1273, allocations: 107.8 kB / 369.1 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1576/0.2849, allocations: 1.079 MB / 370.2 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007862/0.2857, allocations: 107 kB / 370.3 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.219e-05/0.2858, allocations: 25.89 kB / 370.3 MB, free: 25.26 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 (64): * Single equations (assignments): 63 * 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,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002547/0.2861, allocations: 184.2 kB / 370.5 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.2862, allocations: 49.47 kB / 370.5 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001393/0.2863, allocations: 68.86 kB / 370.6 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.2863, allocations: 7.125 kB / 370.6 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2864, allocations: 0.5312 kB / 370.6 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.2864, allocations: 3.609 kB / 370.6 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002684/0.2891, allocations: 1.575 MB / 372.2 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.2891, allocations: 0.8438 kB / 372.2 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004464/0.2895, allocations: 91.81 kB / 372.3 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.2907, allocations: 0.7063 MB / 373 MB, free: 24.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.214e-05/0.2908, allocations: 22.94 kB / 373 MB, free: 24.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.292, allocations: 1.072 MB / 374.1 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.292, allocations: 2.531 kB / 374.1 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.2943, allocations: 1.303 MB / 375.4 MB, free: 23.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/0.2945, allocations: 190.8 kB / 375.6 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.2947, allocations: 25.98 kB / 375.6 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006071/0.2953, allocations: 96.73 kB / 375.7 MB, free: 23.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.2955, allocations: 127.9 kB / 375.8 MB, free: 23.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.798e-05/0.2956, allocations: 30.66 kB / 375.8 MB, free: 23.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002065/0.2958, allocations: 236.1 kB / 376.1 MB, free: 23.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2958, allocations: 0 / 376.1 MB, free: 23.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005211/0.2963, allocations: 162.2 kB / 376.2 MB, free: 23.11 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002257/0.2966, allocations: 148.9 kB / 376.4 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.2983, allocations: 0.7932 MB / 377.2 MB, free: 22.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2983, allocations: 0 / 377.2 MB, free: 22.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008539/0.2991, allocations: 430.5 kB / 377.6 MB, free: 22.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006961/0.2999, allocations: 104.6 kB / 377.7 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.3023, allocations: 1.591 MB / 379.3 MB, free: 21.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.3026, allocations: 0.8427 MB / 380.1 MB, free: 20.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.3028, allocations: 50.33 kB / 380.2 MB, free: 20.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.303, allocations: 41.62 kB / 380.2 MB, free: 20.82 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.303, allocations: 1.219 kB / 380.2 MB, free: 20.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01825/0.3212, allocations: 13.42 MB / 393.6 MB, free: 14.14 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches