Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001687/0.001687, allocations: 77.62 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001903/0.001903, allocations: 158.8 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 177.1 MB / 204.7 MB, free: 8.973 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 65.36 kB / 325.5 MB, free: 188 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/0.09435, allocations: 53.39 MB / 378.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004638/0.09899, allocations: 3.006 MB / 381.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.1011, allocations: 1.205 MB / 383.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.1013, allocations: 7.938 kB / 383.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/0.1016, allocations: 103.1 kB / 383.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004285/0.1021, allocations: 222.4 kB / 383.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005087/0.1026, allocations: 283.5 kB / 383.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008337/0.1034, allocations: 0.8464 MB / 384.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.1036, allocations: 97.48 kB / 384.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005388/0.1041, allocations: 390.8 kB / 385 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005129/0.1046, allocations: 386.5 kB / 385.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.1048, allocations: 64 kB / 385.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.105, allocations: 120 kB / 385.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002232/0.1052, allocations: 183.5 kB / 385.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002923/0.1055, allocations: 282.7 kB / 386.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008677/0.1064, allocations: 0.7977 MB / 386.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1064, allocations: 0 / 386.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1064, allocations: 0 / 386.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1064, allocations: 0 / 386.9 MB, free: 7.484 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001885/0.1083, allocations: 0.8863 MB / 387.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1083, allocations: 12.03 kB / 387.8 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003577/0.1087, allocations: 80.53 kB / 387.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007045/0.1094, allocations: 344.3 kB / 388.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.275e-05/0.1094, allocations: 33.38 kB / 388.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.1095, allocations: 52.31 kB / 388.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.1108, allocations: 0.6152 MB / 388.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.1108, allocations: 7.922 kB / 388.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.024e-05/0.1109, allocations: 20 kB / 388.9 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.1109, allocations: 12 kB / 388.9 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.1122, allocations: 0.5816 MB / 389.5 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002297/0.1145, allocations: 1.115 MB / 390.6 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.1156, allocations: 482.8 kB / 391.1 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006221/0.1162, allocations: 290.6 kB / 391.4 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.055e-05/0.1163, allocations: 8.656 kB / 391.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.1163, allocations: 43.22 kB / 391.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.244e-06/0.1163, allocations: 0 / 391.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006812/0.1231, allocations: 2.52 MB / 393.9 MB, free: 236 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.1232, allocations: 60.06 kB / 394 MB, free: 164 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004569/0.1237, allocations: 357.6 kB / 394.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.732e-05/0.1238, allocations: 53.69 kB / 394.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.1239, allocations: 193.6 kB / 394.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/0.1242, allocations: 269.9 kB / 394.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002345/0.1244, allocations: 134.6 kB / 395 MB, free: 15.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.1246, allocations: 358.8 kB / 395.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006931/0.1253, allocations: 301.9 kB / 395.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006979/0.126, allocations: 373.4 kB / 396 MB, free: 14.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.127, allocations: 497 kB / 396.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.127, allocations: 4 kB / 396.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002051/0.1291, allocations: 0.9352 MB / 397.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.1291, allocations: 4 kB / 397.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1291, allocations: 4.031 kB / 397.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001415/0.1305, allocations: 0.5668 MB / 398 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/0.1309, allocations: 95.88 kB / 398.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.1326, allocations: 1.105 MB / 399.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007045/0.1333, allocations: 103.9 kB / 399.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.451e-05/0.1333, allocations: 27.98 kB / 399.3 MB, free: 10.75 MB / 366.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 (61): * Single equations (assignments): 60 * 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,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0003108/0.1337, allocations: 200 kB / 399.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.1338, allocations: 63.5 kB / 399.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001755/0.134, allocations: 76.98 kB / 399.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.134, allocations: 8 kB / 399.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.134, allocations: 0 / 399.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.134, allocations: 3.984 kB / 399.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.1369, allocations: 1.4 MB / 401.1 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.1369, allocations: 0 / 401.1 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004309/0.1373, allocations: 91.88 kB / 401.1 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001231/0.1385, allocations: 0.5394 MB / 401.7 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.651e-05/0.1386, allocations: 31.95 kB / 401.7 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001651/0.1403, allocations: 1.066 MB / 402.8 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1403, allocations: 8 kB / 402.8 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.1429, allocations: 1.304 MB / 404.1 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/0.1432, allocations: 119.5 kB / 404.2 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.1433, allocations: 24 kB / 404.2 MB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006952/0.144, allocations: 103.9 kB / 404.3 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003124/0.1443, allocations: 136.3 kB / 404.5 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.089e-05/0.1444, allocations: 31.95 kB / 404.5 MB, free: 5.457 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002781/0.1447, allocations: 251.2 kB / 404.7 MB, free: 5.211 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1447, allocations: 0 / 404.7 MB, free: 5.211 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005473/0.1452, allocations: 160 kB / 404.9 MB, free: 5.055 MB / 366.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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001557/0.1468, allocations: 415.7 kB / 405.3 MB, free: 4.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001782/0.1486, allocations: 0.7229 MB / 406 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1486, allocations: 0 / 406 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009319/0.1495, allocations: 420.7 kB / 406.4 MB, free: 3.633 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007584/0.1503, allocations: 117.8 kB / 406.6 MB, free: 3.527 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002764/0.153, allocations: 1.423 MB / 408 MB, free: 2.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.1533, allocations: 259.5 kB / 408.2 MB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.1535, allocations: 52.39 kB / 408.3 MB, free: 1.738 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.1536, allocations: 52.47 kB / 408.3 MB, free: 1.688 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1536, allocations: 3.938 kB / 408.3 MB, free: 1.684 MB / 366.1 MB Notification: Performance of Templates: time 0.0205/0.1741, allocations: 11.82 MB / 420.2 MB, free: 5.973 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.732666808995418]