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.001102/0.001102, allocations: 108.7 kB / 17.75 MB, free: 5.223 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.001201/0.001201, allocations: 190.4 kB / 18.67 MB, free: 4.305 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009382/0.0009382, allocations: 47.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2162, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003805/0.2201, allocations: 3.094 MB / 404.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.2216, allocations: 1.036 MB / 405.5 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.2218, allocations: 8 kB / 405.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002218/0.222, allocations: 75.25 kB / 405.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002441/0.2222, allocations: 162.6 kB / 405.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005414/0.2228, allocations: 287.5 kB / 406.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006598/0.2235, allocations: 0.7999 MB / 406.9 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.2237, allocations: 125.2 kB / 407 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003763/0.2241, allocations: 362.9 kB / 407.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004084/0.2245, allocations: 378.7 kB / 407.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.6e-05/0.2246, allocations: 60 kB / 407.8 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002124/0.2248, allocations: 119.9 kB / 407.9 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.225, allocations: 151.5 kB / 408 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.2253, allocations: 302.5 kB / 408.3 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006399/0.2259, allocations: 0.7253 MB / 409.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2259, allocations: 0 / 409.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2259, allocations: 0 / 409.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2259, allocations: 0 / 409.1 MB, free: 1.168 MB / 318.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.001685/0.2276, allocations: 0.8846 MB / 409.9 MB, free: 240 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.2277, allocations: 8.031 kB / 409.9 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.2278, allocations: 60.28 kB / 410 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004808/0.2283, allocations: 367.6 kB / 410.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.987e-05/0.2283, allocations: 29.38 kB / 410.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.928e-05/0.2284, allocations: 44.38 kB / 410.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.2296, allocations: 0.6191 MB / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.2296, allocations: 11.89 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.98e-05/0.2297, allocations: 23.94 kB / 411.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.2297, allocations: 8 kB / 411.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.2309, allocations: 0.5973 MB / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.2331, allocations: 1.313 MB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009498/0.234, allocations: 466.6 kB / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005668/0.2346, allocations: 306.4 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.337e-05/0.2347, allocations: 12.55 kB / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.2347, allocations: 43.12 kB / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 1.814e-06/0.2347, allocations: 0 / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.006294/0.241, allocations: 2.863 MB / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.2411, allocations: 59.97 kB / 416.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.2414, allocations: 321.7 kB / 417.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.915e-05/0.2414, allocations: 53.69 kB / 417.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.2416, allocations: 197.2 kB / 417.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.2417, allocations: 225 kB / 417.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002096/0.242, allocations: 130.6 kB / 417.6 MB, free: 8.215 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.2421, allocations: 354.8 kB / 418 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006199/0.2427, allocations: 317.8 kB / 418.3 MB, free: 7.547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006521/0.2434, allocations: 400.9 kB / 418.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009587/0.2443, allocations: 0.5069 MB / 419.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2443, allocations: 4 kB / 419.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001712/0.2461, allocations: 0.9271 MB / 420.1 MB, free: 5.688 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2461, allocations: 4 kB / 420.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2461, allocations: 4 kB / 420.1 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/0.2473, allocations: 0.7346 MB / 420.9 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.2477, allocations: 103.8 kB / 421 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.2491, allocations: 1.085 MB / 422.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006914/0.2498, allocations: 103.9 kB / 422.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.648e-05/0.2498, allocations: 27.98 kB / 422.2 MB, free: 3.602 MB / 334.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.000234/0.2501, allocations: 187.9 kB / 422.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.2502, allocations: 51.42 kB / 422.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001571/0.2503, allocations: 68.75 kB / 422.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2503, allocations: 0 / 422.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2504, allocations: 0 / 422.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.2506, allocations: 192.4 kB / 422.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.2507, allocations: 20 kB / 422.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006902/0.2514, allocations: 107.8 kB / 422.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.2517, allocations: 124.3 kB / 422.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002494/0.2542, allocations: 0.95 MB / 423.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001969/0.2562, allocations: 1.144 MB / 425 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005793/0.2568, allocations: 312.3 kB / 425.3 MB, free: 424 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001994/0.257, allocations: 235.2 kB / 425.6 MB, free: 192 kB / 334.1 MB Notification: Performance of Backend: time 3.91e-07/0.257, allocations: 0 / 425.6 MB, free: 192 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.2584, allocations: 0.6178 MB / 426.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of SimCode: time 0.001958/0.2604, allocations: 1.749 MB / 427.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of Templates: time 0.0184/0.2788, allocations: 12.77 MB / 440.7 MB, free: 1.027 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches