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.001526/0.001526, allocations: 93.52 kB / 16.3 MB, free: 5.656 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.001776/0.001776, allocations: 188.2 kB / 17.2 MB, free: 5.594 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.304/1.304, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.0003081, allocations: 6.281 kB / 300.7 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09349/0.09381, allocations: 50.43 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002908/0.09675, allocations: 2.487 MB / 353.6 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.09813, allocations: 1.029 MB / 354.7 MB, free: 8.195 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.09829, allocations: 11.94 kB / 354.7 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.09844, allocations: 51.61 kB / 354.7 MB, free: 8.133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.0987, allocations: 163.5 kB / 354.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004303/0.09914, allocations: 215.6 kB / 355.1 MB, free: 7.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004813/0.09963, allocations: 496.7 kB / 355.6 MB, free: 7.273 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.09983, allocations: 107 kB / 355.7 MB, free: 7.164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003301/0.1002, allocations: 310.9 kB / 356 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003492/0.1005, allocations: 338.9 kB / 356.3 MB, free: 6.527 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.921e-05/0.1006, allocations: 35.94 kB / 356.3 MB, free: 6.492 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.1008, allocations: 71.95 kB / 356.4 MB, free: 6.422 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.1009, allocations: 119.6 kB / 356.5 MB, free: 6.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.229e-05/0.101, allocations: 109.5 kB / 356.6 MB, free: 6.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004285/0.1014, allocations: 0.4947 MB / 357.1 MB, free: 5.695 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1014, allocations: 0 / 357.1 MB, free: 5.695 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1014, allocations: 3.938 kB / 357.1 MB, free: 5.691 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.1014, allocations: 4 kB / 357.1 MB, free: 5.688 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.001469/0.1029, allocations: 0.8107 MB / 358 MB, free: 4.828 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.103, allocations: 8.031 kB / 358 MB, free: 4.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.1031, allocations: 63.3 kB / 358 MB, free: 4.758 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.1035, allocations: 354.5 kB / 358.4 MB, free: 4.375 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.384e-05/0.1036, allocations: 29 kB / 358.4 MB, free: 4.344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.81e-05/0.1036, allocations: 44 kB / 358.4 MB, free: 4.301 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.1047, allocations: 0.6228 MB / 359.1 MB, free: 3.668 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.1047, allocations: 7.906 kB / 359.1 MB, free: 3.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.351e-05/0.1048, allocations: 16 kB / 359.1 MB, free: 3.645 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.1048, allocations: 11.98 kB / 359.1 MB, free: 3.633 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.1059, allocations: 0.6207 MB / 359.7 MB, free: 3.008 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00216/0.1081, allocations: 1.356 MB / 361.1 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009/0.109, allocations: 473.2 kB / 361.5 MB, free: 1.117 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.332e-05/0.109, allocations: 4.562 kB / 361.5 MB, free: 1.113 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.1091, allocations: 47.12 kB / 361.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 1.583e-06/0.1091, allocations: 0 / 361.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.006175/0.1153, allocations: 3.026 MB / 364.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.1153, allocations: 55.97 kB / 364.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003178/0.1156, allocations: 333.6 kB / 365 MB, free: 13.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.1157, allocations: 49.69 kB / 365 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1158, allocations: 193.2 kB / 365.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.116, allocations: 221.1 kB / 365.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.1161, allocations: 15.98 kB / 365.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1162, allocations: 350.8 kB / 365.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005829/0.1168, allocations: 325.8 kB / 366.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006006/0.1174, allocations: 389 kB / 366.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000473/0.1179, allocations: 263.1 kB / 366.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1179, allocations: 0 / 366.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001599/0.1195, allocations: 0.9393 MB / 367.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.1195, allocations: 8 kB / 367.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1195, allocations: 0 / 367.7 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.1207, allocations: 0.7325 MB / 368.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.1211, allocations: 103.9 kB / 368.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001297/0.1224, allocations: 1.097 MB / 369.6 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007188/0.1231, allocations: 151.8 kB / 369.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.322e-05/0.1232, allocations: 23.98 kB / 369.8 MB, free: 8.613 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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002557/0.1235, allocations: 180 kB / 370 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.754e-05/0.1236, allocations: 47.44 kB / 370 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/0.1237, allocations: 76.69 kB / 370.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.1237, allocations: 8 kB / 370.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1238, allocations: 0 / 370.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.1238, allocations: 3.984 kB / 370.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.1263, allocations: 1.594 MB / 371.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1263, allocations: 0 / 371.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004029/0.1267, allocations: 95.89 kB / 371.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.1278, allocations: 0.7035 MB / 372.5 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.565e-05/0.1278, allocations: 35.91 kB / 372.5 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.1291, allocations: 1.064 MB / 373.6 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1291, allocations: 0 / 373.6 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/0.1315, allocations: 1.323 MB / 374.9 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002918/0.1318, allocations: 196.4 kB / 375.1 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.1319, allocations: 24 kB / 375.2 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006962/0.1326, allocations: 147.8 kB / 375.3 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003039/0.133, allocations: 144.2 kB / 375.4 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.068e-05/0.133, allocations: 35.97 kB / 375.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003466/0.1334, allocations: 227.2 kB / 375.7 MB, free: 2.598 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.899e-06/0.1334, allocations: 0 / 375.7 MB, free: 2.598 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005909/0.134, allocations: 163.9 kB / 375.9 MB, free: 2.438 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002575/0.1343, allocations: 144.3 kB / 376 MB, free: 2.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.136, allocations: 0.7878 MB / 376.8 MB, free: 1.492 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.136, allocations: 4.062 kB / 376.8 MB, free: 1.488 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008323/0.1368, allocations: 429.9 kB / 377.2 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005367/0.1374, allocations: 81.31 kB / 377.3 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.1404, allocations: 1.652 MB / 378.9 MB, free: 15.31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.1409, allocations: 0.8598 MB / 379.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001782/0.1411, allocations: 44.17 kB / 379.8 MB, free: 14.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.1412, allocations: 43.41 kB / 379.9 MB, free: 14.34 MB / 318.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1412, allocations: 0 / 379.9 MB, free: 14.34 MB / 318.1 MB Notification: Performance of Templates: time 0.01807/0.1593, allocations: 12.21 MB / 392.1 MB, free: 2.168 MB / 318.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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches