Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001885/0.001885, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002145/0.002145, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.441/1.441, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 67.89 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2479, allocations: 50.54 MB / 410.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004734/0.2526, allocations: 3.266 MB / 413.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002039/0.2547, allocations: 1.24 MB / 414.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.2548, allocations: 8 kB / 414.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003039/0.2551, allocations: 95.09 kB / 414.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000424/0.2556, allocations: 222.4 kB / 415 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004948/0.2561, allocations: 275.5 kB / 415.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009082/0.257, allocations: 0.8466 MB / 416.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.2572, allocations: 105.1 kB / 416.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005225/0.2577, allocations: 382.8 kB / 416.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004892/0.2582, allocations: 406.5 kB / 417 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.2583, allocations: 64 kB / 417.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002282/0.2586, allocations: 127.9 kB / 417.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002085/0.2588, allocations: 171.5 kB / 417.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003152/0.2591, allocations: 330.3 kB / 417.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008709/0.2599, allocations: 0.7976 MB / 418.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2599, allocations: 0 / 418.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.26, allocations: 0 / 418.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.138e-06/0.26, allocations: 4 kB / 418.5 MB, free: 9.129 MB / 334.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.00192/0.2619, allocations: 0.9654 MB / 419.5 MB, free: 8.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.2619, allocations: 8.031 kB / 419.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003501/0.2623, allocations: 84.53 kB / 419.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006952/0.263, allocations: 406.3 kB / 419.9 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.312e-05/0.263, allocations: 33.38 kB / 420 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.2631, allocations: 52.33 kB / 420 MB, free: 7.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.2643, allocations: 0.6152 MB / 420.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.2643, allocations: 0 / 420.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.085e-05/0.2644, allocations: 23.98 kB / 420.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.2644, allocations: 16 kB / 420.7 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.2657, allocations: 0.5855 MB / 421.3 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002603/0.2683, allocations: 1.359 MB / 422.6 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.2694, allocations: 485.3 kB / 423.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006169/0.2701, allocations: 290.4 kB / 423.4 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.898e-05/0.2701, allocations: 12.56 kB / 423.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.2702, allocations: 35.12 kB / 423.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 1.934e-06/0.2702, allocations: 0 / 423.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.007114/0.2773, allocations: 2.898 MB / 426.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.2773, allocations: 56.06 kB / 426.4 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004756/0.2778, allocations: 365.6 kB / 426.7 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.986e-05/0.2779, allocations: 49.7 kB / 426.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.278, allocations: 201.6 kB / 427 MB, free: 296 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/0.2783, allocations: 273.8 kB / 427.2 MB, free: 20 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002391/0.2785, allocations: 126.7 kB / 427.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.2787, allocations: 362.8 kB / 427.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006778/0.2794, allocations: 305.9 kB / 428 MB, free: 15.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007018/0.2801, allocations: 373.4 kB / 428.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.2811, allocations: 0.4889 MB / 428.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2811, allocations: 0 / 428.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002032/0.2832, allocations: 0.9274 MB / 429.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.2832, allocations: 4 kB / 429.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.2832, allocations: 0 / 429.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/0.2846, allocations: 0.5824 MB / 430.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003871/0.285, allocations: 95.83 kB / 430.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.2867, allocations: 1.096 MB / 431.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007515/0.2874, allocations: 115.9 kB / 431.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.914e-05/0.2875, allocations: 23.98 kB / 431.7 MB, free: 11.47 MB / 350.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.0003239/0.2878, allocations: 199.8 kB / 431.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.2879, allocations: 55.67 kB / 432 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001979/0.2881, allocations: 77.08 kB / 432 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.2881, allocations: 8 kB / 432 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.2882, allocations: 0 / 432 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.2882, allocations: 3.984 kB / 432.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.2912, allocations: 1.61 MB / 433.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.2912, allocations: 7.922 kB / 433.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004514/0.2917, allocations: 87.98 kB / 433.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001348/0.293, allocations: 0.5356 MB / 434.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.748e-05/0.2931, allocations: 27.95 kB / 434.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001628/0.2947, allocations: 1.081 MB / 435.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2947, allocations: 0 / 435.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002753/0.2975, allocations: 1.297 MB / 436.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003143/0.2978, allocations: 208.6 kB / 436.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.2979, allocations: 28 kB / 436.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007001/0.2986, allocations: 99.86 kB / 437 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.2989, allocations: 128.4 kB / 437.2 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.972e-05/0.299, allocations: 31.97 kB / 437.2 MB, free: 5.863 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003198/0.2993, allocations: 259.1 kB / 437.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2993, allocations: 0 / 437.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005628/0.2999, allocations: 156 kB / 437.6 MB, free: 5.457 MB / 350.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.001362/0.3013, allocations: 393.1 kB / 438 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00178/0.303, allocations: 0.7269 MB / 438.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.303, allocations: 0 / 438.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009744/0.304, allocations: 416.6 kB / 439.1 MB, free: 4.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007536/0.3048, allocations: 120.3 kB / 439.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.3075, allocations: 1.436 MB / 440.7 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000526/0.3081, allocations: 0.8674 MB / 441.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000198/0.3083, allocations: 48.42 kB / 441.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.3084, allocations: 55.41 kB / 441.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3084, allocations: 0 / 441.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of Templates: time 0.02302/0.3314, allocations: 13.84 MB / 455.5 MB, free: 3.73 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches