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.001526/0.001526, allocations: 108.4 kB / 18.36 MB, free: 4.633 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.001703/0.001703, allocations: 191 kB / 19.29 MB, free: 3.703 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.314/1.314, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001188/0.001188, allocations: 51.92 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08345/0.08465, allocations: 46.63 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004025/0.08871, allocations: 3.092 MB / 331.8 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001629/0.09035, allocations: 1.08 MB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.09051, allocations: 7.938 kB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002302/0.09076, allocations: 79.22 kB / 333 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002382/0.09101, allocations: 150.7 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005432/0.09156, allocations: 283.5 kB / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006633/0.09224, allocations: 0.7999 MB / 334.2 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.09246, allocations: 133.1 kB / 334.3 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003655/0.09283, allocations: 350.9 kB / 334.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000402/0.09324, allocations: 386.7 kB / 335.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.677e-05/0.09334, allocations: 56 kB / 335.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001895/0.09353, allocations: 111.9 kB / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.09371, allocations: 155.5 kB / 335.4 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002715/0.09399, allocations: 302.5 kB / 335.7 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006482/0.09464, allocations: 0.7202 MB / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.09465, allocations: 0 / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.09466, allocations: 4 kB / 336.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.09468, allocations: 0 / 336.4 MB, free: 12.05 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.001649/0.09633, allocations: 0.8884 MB / 337.3 MB, free: 11.11 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.09637, allocations: 12.03 kB / 337.3 MB, free: 11.1 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.0965, allocations: 56.28 kB / 337.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005016/0.09701, allocations: 371.6 kB / 337.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.09706, allocations: 29.38 kB / 337.7 MB, free: 10.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.453e-05/0.09716, allocations: 48.38 kB / 337.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.09823, allocations: 0.6152 MB / 338.4 MB, free: 9.938 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.09827, allocations: 7.906 kB / 338.4 MB, free: 9.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.229e-05/0.09832, allocations: 20 kB / 338.4 MB, free: 9.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.09834, allocations: 8 kB / 338.4 MB, free: 9.902 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.09953, allocations: 0.6089 MB / 339 MB, free: 9.293 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002117/0.1017, allocations: 1.309 MB / 340.4 MB, free: 7.926 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009282/0.1026, allocations: 461.2 kB / 340.8 MB, free: 7.465 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005485/0.1032, allocations: 306.4 kB / 341.1 MB, free: 7.164 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.722e-05/0.1032, allocations: 16.53 kB / 341.1 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.1033, allocations: 39.12 kB / 341.2 MB, free: 7.102 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 1.784e-06/0.1033, allocations: 0 / 341.2 MB, free: 7.102 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.005941/0.1092, allocations: 2.867 MB / 344 MB, free: 4.094 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.1093, allocations: 59.97 kB / 344.1 MB, free: 4.023 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003345/0.1096, allocations: 329.7 kB / 344.4 MB, free: 3.691 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.657e-05/0.1097, allocations: 49.69 kB / 344.5 MB, free: 3.637 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.1098, allocations: 197.2 kB / 344.6 MB, free: 3.441 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.11, allocations: 225 kB / 344.9 MB, free: 3.219 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002216/0.1102, allocations: 130.5 kB / 345 MB, free: 3.086 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1104, allocations: 366.7 kB / 345.4 MB, free: 2.719 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006071/0.111, allocations: 317.8 kB / 345.7 MB, free: 2.406 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006243/0.1116, allocations: 385 kB / 346 MB, free: 2.023 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009114/0.1125, allocations: 0.503 MB / 346.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1126, allocations: 4 kB / 346.5 MB, free: 1.504 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001625/0.1142, allocations: 0.9271 MB / 347.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.1142, allocations: 8 kB / 347.5 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1142, allocations: 0 / 347.5 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.1155, allocations: 0.7307 MB / 348.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/0.1158, allocations: 103.8 kB / 348.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.1172, allocations: 1.091 MB / 349.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005939/0.1178, allocations: 99.91 kB / 349.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.08e-05/0.1179, allocations: 31.98 kB / 349.5 MB, free: 14.48 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.0002359/0.1181, allocations: 183.9 kB / 349.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.503e-05/0.1182, allocations: 47.44 kB / 349.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001507/0.1184, allocations: 68.75 kB / 349.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.1184, allocations: 8 kB / 349.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1184, allocations: 0 / 349.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1184, allocations: 3.984 kB / 349.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002632/0.1211, allocations: 1.565 MB / 351.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1211, allocations: 0 / 351.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004149/0.1215, allocations: 91.89 kB / 351.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.1226, allocations: 0.7034 MB / 352.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.718e-05/0.1227, allocations: 23.97 kB / 352.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001308/0.124, allocations: 1.064 MB / 353.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.124, allocations: 4.031 kB / 353.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/0.1264, allocations: 1.312 MB / 354.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002841/0.1267, allocations: 188.4 kB / 354.8 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.1268, allocations: 23.98 kB / 354.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005703/0.1274, allocations: 103.8 kB / 354.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.1276, allocations: 124.3 kB / 355 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.947e-05/0.1277, allocations: 31.97 kB / 355.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002164/0.1279, allocations: 231.2 kB / 355.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1279, allocations: 0 / 355.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005197/0.1285, allocations: 164 kB / 355.4 MB, free: 8.422 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.0002606/0.1287, allocations: 143.2 kB / 355.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.1303, allocations: 0.7803 MB / 356.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1303, allocations: 0 / 356.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008091/0.1311, allocations: 433.9 kB / 356.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006138/0.1317, allocations: 101.5 kB / 356.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.1341, allocations: 1.382 MB / 358.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.1345, allocations: 0.8362 MB / 359.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.1347, allocations: 52.16 kB / 359.2 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.1348, allocations: 47.42 kB / 359.2 MB, free: 4.598 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1348, allocations: 0 / 359.2 MB, free: 4.598 MB / 302.1 MB Notification: Performance of Templates: time 0.01841/0.1532, allocations: 13.55 MB / 372.8 MB, free: 7.035 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches