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.001069/0.001069, allocations: 108.2 kB / 16.51 MB, free: 6.707 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.00103/0.00103, allocations: 194.5 kB / 17.43 MB, free: 6.066 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.401/1.401, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 44.78 kB / 299.9 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1098, allocations: 49.44 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004008/0.1138, allocations: 3.145 MB / 352.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.1156, allocations: 1.032 MB / 353.6 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002376/0.1159, allocations: 15.94 kB / 353.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000248/0.1161, allocations: 59.55 kB / 353.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003082/0.1165, allocations: 127 kB / 353.8 MB, free: 460 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005674/0.117, allocations: 251.6 kB / 354 MB, free: 208 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006867/0.1177, allocations: 0.753 MB / 354.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.118, allocations: 112.8 kB / 354.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004402/0.1184, allocations: 326.8 kB / 355.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004486/0.1189, allocations: 366.6 kB / 355.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.119, allocations: 36 kB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000214/0.1192, allocations: 79.95 kB / 355.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.1194, allocations: 127.5 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003014/0.1197, allocations: 278.6 kB / 356.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006124/0.1203, allocations: 0.6738 MB / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1203, allocations: 0 / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1203, allocations: 3.938 kB / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.1203, allocations: 0 / 356.7 MB, free: 13.46 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.001666/0.122, allocations: 0.8808 MB / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1221, allocations: 12.03 kB / 357.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.1222, allocations: 60.19 kB / 357.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/0.1226, allocations: 363.7 kB / 358 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.1227, allocations: 33.38 kB / 358.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.028e-05/0.1228, allocations: 40.38 kB / 358.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.1239, allocations: 0.6152 MB / 358.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.1239, allocations: 15.84 kB / 358.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.912e-05/0.124, allocations: 19.98 kB / 358.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.124, allocations: 15.98 kB / 358.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.1252, allocations: 0.5973 MB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.1274, allocations: 1.32 MB / 360.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009517/0.1284, allocations: 476 kB / 361.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005577/0.1289, allocations: 310.3 kB / 361.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.508e-05/0.129, allocations: 8.547 kB / 361.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.129, allocations: 39.12 kB / 361.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.174e-06/0.129, allocations: 4 kB / 361.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.006143/0.1352, allocations: 2.863 MB / 364.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.1352, allocations: 63.95 kB / 364.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000311/0.1356, allocations: 321.7 kB / 364.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.799e-05/0.1356, allocations: 53.69 kB / 364.8 MB, free: 5.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1358, allocations: 197.2 kB / 365 MB, free: 4.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.1359, allocations: 228.9 kB / 365.2 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002226/0.1362, allocations: 130.6 kB / 365.3 MB, free: 4.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1363, allocations: 358.7 kB / 365.7 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006495/0.137, allocations: 317.8 kB / 366 MB, free: 3.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006438/0.1376, allocations: 389 kB / 366.4 MB, free: 3.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000951/0.1386, allocations: 0.4991 MB / 366.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1386, allocations: 4 kB / 366.9 MB, free: 2.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001747/0.1403, allocations: 0.9272 MB / 367.8 MB, free: 1.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1404, allocations: 4 kB / 367.8 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1404, allocations: 4 kB / 367.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/0.1416, allocations: 0.7229 MB / 368.6 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003959/0.1421, allocations: 103.8 kB / 368.7 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.1435, allocations: 1.089 MB / 369.7 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1558/0.2993, allocations: 102.6 kB / 369.8 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.762e-05/0.2994, allocations: 26.06 kB / 369.9 MB, free: 26.03 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.0003047/0.2997, allocations: 184.7 kB / 370 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.2999, allocations: 48.25 kB / 370.1 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.3, allocations: 76.28 kB / 370.2 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.3, allocations: 5.969 kB / 370.2 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.3, allocations: 1.906 kB / 370.2 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.3001, allocations: 4.516 kB / 370.2 MB, free: 25.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003143/0.3032, allocations: 1.572 MB / 371.8 MB, free: 25.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3032, allocations: 0 / 371.8 MB, free: 25.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.3037, allocations: 87.59 kB / 371.8 MB, free: 25.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.3049, allocations: 0.7086 MB / 372.5 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.55e-05/0.305, allocations: 35.05 kB / 372.6 MB, free: 25.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.3062, allocations: 1.056 MB / 373.6 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3062, allocations: 0 / 373.6 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.3085, allocations: 1.311 MB / 374.9 MB, free: 24.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.3088, allocations: 187.4 kB / 375.1 MB, free: 24.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.3089, allocations: 21.5 kB / 375.2 MB, free: 24.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.3095, allocations: 100.4 kB / 375.3 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002923/0.3098, allocations: 120.5 kB / 375.4 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.11e-05/0.3099, allocations: 34.7 kB / 375.4 MB, free: 24.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002281/0.3101, allocations: 234.1 kB / 375.6 MB, free: 24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3101, allocations: 0.5469 kB / 375.6 MB, free: 24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005404/0.3107, allocations: 161.8 kB / 375.8 MB, free: 23.98 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.0002448/0.3109, allocations: 149.1 kB / 375.9 MB, free: 23.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.3125, allocations: 0.7769 MB / 376.7 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3125, allocations: 0.9688 kB / 376.7 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007972/0.3133, allocations: 426.2 kB / 377.1 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006374/0.3139, allocations: 94.58 kB / 377.2 MB, free: 23.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.3163, allocations: 1.588 MB / 378.8 MB, free: 22.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.3166, allocations: 0.8411 MB / 379.7 MB, free: 21.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001972/0.3168, allocations: 56.38 kB / 379.7 MB, free: 21.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.3169, allocations: 38.34 kB / 379.7 MB, free: 21.7 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3169, allocations: 0 / 379.7 MB, free: 21.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01662/0.3335, allocations: 12.69 MB / 392.4 MB, free: 15.63 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