Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001453/0.001452, allocations: 114 kB / 17.28 MB, free: 6.219 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.001319/0.001319, allocations: 189.3 kB / 18.2 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 47.92 kB / 280.2 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09555/0.09668, allocations: 46.63 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004142/0.1009, allocations: 3.118 MB / 329.9 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.1026, allocations: 1.068 MB / 331 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.1028, allocations: 15.94 kB / 331 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002361/0.103, allocations: 55.56 kB / 331 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002349/0.1033, allocations: 131 kB / 331.2 MB, free: 392 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005377/0.1038, allocations: 247.7 kB / 331.4 MB, free: 144 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000697/0.1045, allocations: 0.796 MB / 332.2 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.1048, allocations: 144.8 kB / 332.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004188/0.1052, allocations: 358.8 kB / 332.7 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004016/0.1056, allocations: 390.6 kB / 333.1 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.505e-05/0.1057, allocations: 60 kB / 333.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.1059, allocations: 108 kB / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1061, allocations: 151.5 kB / 333.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002447/0.1063, allocations: 298.6 kB / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006197/0.1069, allocations: 0.7167 MB / 334.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.107, allocations: 0 / 334.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.107, allocations: 0 / 334.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.107, allocations: 0 / 334.4 MB, free: 13.14 MB / 286.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.001629/0.1086, allocations: 0.8884 MB / 335.3 MB, free: 12.2 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1087, allocations: 11.97 kB / 335.3 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.1088, allocations: 64.28 kB / 335.4 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.1092, allocations: 359.6 kB / 335.7 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.1093, allocations: 37.38 kB / 335.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.441e-05/0.1094, allocations: 44.36 kB / 335.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.1105, allocations: 0.6152 MB / 336.4 MB, free: 11.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.1105, allocations: 11.84 kB / 336.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.35e-05/0.1106, allocations: 20 kB / 336.4 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.1106, allocations: 12 kB / 336.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.1117, allocations: 0.5973 MB / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002241/0.114, allocations: 1.317 MB / 338.4 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.1151, allocations: 473 kB / 338.8 MB, free: 8.543 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005499/0.1157, allocations: 306.4 kB / 339.1 MB, free: 8.238 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.867e-05/0.1157, allocations: 12.55 kB / 339.1 MB, free: 8.227 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.1158, allocations: 35.12 kB / 339.2 MB, free: 8.184 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 2.835e-06/0.1158, allocations: 4 kB / 339.2 MB, free: 8.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.00571/0.1215, allocations: 2.875 MB / 342 MB, free: 5.164 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.1215, allocations: 59.97 kB / 342.1 MB, free: 5.094 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003022/0.1218, allocations: 325.7 kB / 342.4 MB, free: 4.762 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.221e-05/0.1219, allocations: 45.7 kB / 342.5 MB, free: 4.711 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.122, allocations: 205.2 kB / 342.7 MB, free: 4.508 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/0.1222, allocations: 217.1 kB / 342.9 MB, free: 4.293 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002041/0.1224, allocations: 130.5 kB / 343 MB, free: 4.16 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.1227, allocations: 358.7 kB / 343.4 MB, free: 3.801 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005517/0.1232, allocations: 317.8 kB / 343.7 MB, free: 3.488 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005939/0.1238, allocations: 393 kB / 344.1 MB, free: 3.102 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008609/0.1247, allocations: 0.4991 MB / 344.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.1247, allocations: 0 / 344.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001632/0.1263, allocations: 0.9387 MB / 345.5 MB, free: 1.645 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1264, allocations: 4 kB / 345.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1264, allocations: 0 / 345.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/0.1276, allocations: 0.7268 MB / 346.2 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/0.128, allocations: 99.83 kB / 346.3 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.1293, allocations: 1.091 MB / 347.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005994/0.1299, allocations: 107.9 kB / 347.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.933e-05/0.13, allocations: 23.98 kB / 347.5 MB, free: 15.57 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.0002784/0.1303, allocations: 191.9 kB / 347.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.1304, allocations: 43.44 kB / 347.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001761/0.1306, allocations: 72.75 kB / 347.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.1306, allocations: 4 kB / 347.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.1306, allocations: 0 / 347.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.1306, allocations: 7.984 kB / 347.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.1332, allocations: 1.575 MB / 349.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1332, allocations: 0 / 349.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003883/0.1336, allocations: 91.89 kB / 349.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.1346, allocations: 0.6995 MB / 350.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.159e-05/0.1347, allocations: 31.95 kB / 350.2 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/0.136, allocations: 1.064 MB / 351.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.136, allocations: 4 kB / 351.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002207/0.1382, allocations: 1.3 MB / 352.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002246/0.1384, allocations: 192.4 kB / 352.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.1386, allocations: 24 kB / 352.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005473/0.1391, allocations: 103.8 kB / 352.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002684/0.1394, allocations: 124.3 kB / 353 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.358e-05/0.1394, allocations: 27.97 kB / 353.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.1397, allocations: 231.2 kB / 353.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1397, allocations: 8 kB / 353.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005401/0.1402, allocations: 156 kB / 353.5 MB, free: 9.496 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.1405, allocations: 143.2 kB / 353.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001651/0.1421, allocations: 0.7996 MB / 354.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1422, allocations: 0 / 354.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008024/0.143, allocations: 429.8 kB / 354.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006759/0.1437, allocations: 101.8 kB / 354.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.1463, allocations: 1.585 MB / 356.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.1467, allocations: 0.844 MB / 357.4 MB, free: 5.547 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00018/0.1469, allocations: 48.17 kB / 357.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.147, allocations: 47.42 kB / 357.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.147, allocations: 0 / 357.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of Templates: time 0.02138/0.1684, allocations: 13.42 MB / 370.9 MB, free: 8.023 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches