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.001566/0.001566, allocations: 105.4 kB / 18.35 MB, free: 4.77 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.001412/0.001412, allocations: 192 kB / 19.29 MB, free: 3.844 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.427/1.427, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001253/0.001253, allocations: 55.91 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1083, allocations: 46.62 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004521/0.1129, allocations: 3.096 MB / 331.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.1148, allocations: 1.072 MB / 332.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.115, allocations: 7.938 kB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003114/0.1153, allocations: 79.23 kB / 333 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002743/0.1156, allocations: 158.7 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006736/0.1163, allocations: 275.5 kB / 333.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008273/0.1171, allocations: 0.7959 MB / 334.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.1174, allocations: 141.1 kB / 334.3 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004163/0.1178, allocations: 346.9 kB / 334.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004718/0.1183, allocations: 386.6 kB / 335.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.616e-05/0.1184, allocations: 60 kB / 335.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.1187, allocations: 104 kB / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002022/0.1189, allocations: 163.5 kB / 335.4 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002998/0.1192, allocations: 298.5 kB / 335.7 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008094/0.12, allocations: 0.7204 MB / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.12, allocations: 0 / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.12, allocations: 0 / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.12, allocations: 4 kB / 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.001794/0.1218, allocations: 0.8884 MB / 337.3 MB, free: 11.11 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1219, allocations: 8.031 kB / 337.3 MB, free: 11.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.122, allocations: 56.28 kB / 337.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006763/0.1227, allocations: 363.6 kB / 337.7 MB, free: 10.65 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.366e-05/0.1228, allocations: 37.38 kB / 337.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.1229, allocations: 48.36 kB / 337.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.1242, allocations: 0.6191 MB / 338.4 MB, free: 9.938 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.1242, allocations: 3.906 kB / 338.4 MB, free: 9.934 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/0.1243, allocations: 16 kB / 338.4 MB, free: 9.918 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.1243, allocations: 12 kB / 338.4 MB, free: 9.906 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/0.1255, allocations: 0.6011 MB / 339 MB, free: 9.305 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.1278, allocations: 1.317 MB / 340.4 MB, free: 7.93 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.1288, allocations: 461.3 kB / 340.8 MB, free: 7.469 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005423/0.1294, allocations: 306.4 kB / 341.1 MB, free: 7.168 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.241e-05/0.1294, allocations: 20.55 kB / 341.1 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.1295, allocations: 35.12 kB / 341.2 MB, free: 7.105 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 1.693e-06/0.1295, allocations: 0 / 341.2 MB, free: 7.105 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.006019/0.1355, allocations: 2.871 MB / 344 MB, free: 4.094 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.1356, allocations: 67.84 kB / 344.1 MB, free: 4.016 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003142/0.1359, allocations: 329.7 kB / 344.4 MB, free: 3.684 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.644e-05/0.136, allocations: 49.7 kB / 344.5 MB, free: 3.629 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.1361, allocations: 197.2 kB / 344.7 MB, free: 3.434 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001688/0.1363, allocations: 217.1 kB / 344.9 MB, free: 3.219 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/0.1365, allocations: 134.5 kB / 345 MB, free: 3.082 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1367, allocations: 358.7 kB / 345.3 MB, free: 2.723 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006156/0.1373, allocations: 325.8 kB / 345.7 MB, free: 2.402 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006891/0.138, allocations: 385 kB / 346 MB, free: 2.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009394/0.1389, allocations: 0.503 MB / 346.5 MB, free: 1.504 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.139, allocations: 4 kB / 346.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001711/0.1407, allocations: 0.9271 MB / 347.5 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1407, allocations: 4 kB / 347.5 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.1407, allocations: 0 / 347.5 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00123/0.142, allocations: 0.7269 MB / 348.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003797/0.1423, allocations: 103.8 kB / 348.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.1437, allocations: 1.095 MB / 349.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00061/0.1444, allocations: 103.9 kB / 349.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.878e-05/0.1444, allocations: 24 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.0002479/0.1447, allocations: 192 kB / 349.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.97e-05/0.1448, allocations: 43.44 kB / 349.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/0.145, allocations: 72.75 kB / 349.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.145, allocations: 4 kB / 349.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.145, allocations: 0 / 349.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.145, allocations: 7.984 kB / 349.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/0.1477, allocations: 1.561 MB / 351.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1477, allocations: 0 / 351.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.1482, allocations: 91.89 kB / 351.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.1493, allocations: 0.7033 MB / 352.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.424e-05/0.1494, allocations: 27.95 kB / 352.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.1507, allocations: 1.064 MB / 353.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1507, allocations: 0 / 353.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002436/0.1531, allocations: 1.312 MB / 354.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002913/0.1535, allocations: 188.4 kB / 354.8 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.1536, allocations: 24 kB / 354.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005904/0.1542, allocations: 107.8 kB / 354.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003028/0.1545, allocations: 128.3 kB / 355 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.135e-05/0.1545, allocations: 23.97 kB / 355.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000264/0.1548, allocations: 231.2 kB / 355.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1548, allocations: 0 / 355.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006343/0.1555, allocations: 160 kB / 355.4 MB, free: 8.426 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.0003516/0.1558, allocations: 155.2 kB / 355.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.1575, allocations: 0.776 MB / 356.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1575, allocations: 4.062 kB / 356.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008375/0.1584, allocations: 425.8 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.0007026/0.1591, allocations: 98.73 kB / 356.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/0.1618, allocations: 1.394 MB / 358.3 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.1622, allocations: 0.8401 MB / 359.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001771/0.1624, allocations: 52.17 kB / 359.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.1626, allocations: 39.42 kB / 359.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1626, allocations: 0 / 359.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of Templates: time 0.01958/0.1821, allocations: 13.56 MB / 372.8 MB, free: 7.027 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 gbode -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