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.001063/0.001063, allocations: 114.1 kB / 17.69 MB, free: 5.312 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.001034/0.001034, allocations: 191 kB / 18.63 MB, free: 4.379 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.349/1.349, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 56.47 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1164, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004058/0.1205, allocations: 3.087 MB / 354.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1224, allocations: 1.048 MB / 355.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001876/0.1226, allocations: 7.938 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.1228, allocations: 79.23 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002992/0.1232, allocations: 154.7 kB / 355.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007459/0.1239, allocations: 279.5 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007208/0.1247, allocations: 0.7959 MB / 357 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.1249, allocations: 137.1 kB / 357.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003644/0.1253, allocations: 346.9 kB / 357.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004129/0.1257, allocations: 386.7 kB / 357.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.149e-05/0.1258, allocations: 60 kB / 357.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.126, allocations: 111.9 kB / 358 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.1262, allocations: 163.5 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.1265, allocations: 290.6 kB / 358.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006497/0.1271, allocations: 0.7243 MB / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1271, allocations: 0 / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1271, allocations: 0 / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.1272, allocations: 0 / 359.1 MB, free: 12.02 MB / 302.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.001598/0.1288, allocations: 0.8846 MB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.1288, allocations: 8.031 kB / 360 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.1289, allocations: 60.19 kB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/0.1295, allocations: 363.7 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.1295, allocations: 41.38 kB / 360.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.491e-05/0.1296, allocations: 48.27 kB / 360.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.1306, allocations: 0.6152 MB / 361.1 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.843e-05/0.1307, allocations: 8 kB / 361.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.231e-05/0.1308, allocations: 19.98 kB / 361.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.1308, allocations: 12 kB / 361.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001137/0.1319, allocations: 0.605 MB / 361.8 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.134, allocations: 1.309 MB / 363.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009479/0.135, allocations: 467 kB / 363.6 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005293/0.1355, allocations: 310.4 kB / 363.9 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.884e-05/0.1356, allocations: 4.562 kB / 363.9 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.1356, allocations: 43.12 kB / 363.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.723e-06/0.1356, allocations: 0 / 363.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.005828/0.1414, allocations: 2.871 MB / 366.8 MB, free: 4.055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.1415, allocations: 55.97 kB / 366.8 MB, free: 3.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/0.1418, allocations: 333.6 kB / 367.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.1419, allocations: 49.7 kB / 367.2 MB, free: 3.598 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.142, allocations: 193.2 kB / 367.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.1422, allocations: 224.9 kB / 367.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002203/0.1424, allocations: 130.5 kB / 367.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1425, allocations: 362.7 kB / 368.1 MB, free: 2.688 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006041/0.1431, allocations: 321.8 kB / 368.4 MB, free: 2.371 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006089/0.1438, allocations: 381 kB / 368.8 MB, free: 1.992 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009145/0.1447, allocations: 0.5108 MB / 369.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1447, allocations: 0 / 369.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001655/0.1464, allocations: 0.9194 MB / 370.2 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.1464, allocations: 8 kB / 370.2 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1464, allocations: 0 / 370.2 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1542/0.3006, allocations: 0.7236 MB / 370.9 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004713/0.3011, allocations: 104.7 kB / 371 MB, free: 25.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.3025, allocations: 1.089 MB / 372.1 MB, free: 25.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006854/0.3032, allocations: 108.5 kB / 372.2 MB, free: 25.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.447e-05/0.3032, allocations: 25.34 kB / 372.3 MB, free: 25.19 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.0002321/0.3035, allocations: 182 kB / 372.4 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.74e-05/0.3036, allocations: 52 kB / 372.5 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001366/0.3037, allocations: 73.34 kB / 372.6 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.3037, allocations: 5.625 kB / 372.6 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.3038, allocations: 0.6562 kB / 372.6 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3038, allocations: 3.781 kB / 372.6 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.3064, allocations: 1.566 MB / 374.1 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3064, allocations: 0 / 374.1 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004496/0.3069, allocations: 90.55 kB / 374.2 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/0.308, allocations: 0.7164 MB / 374.9 MB, free: 24.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.003e-05/0.308, allocations: 26.97 kB / 375 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.3092, allocations: 1.057 MB / 376 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3092, allocations: 0.75 kB / 376 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002243/0.3114, allocations: 1.307 MB / 377.3 MB, free: 23.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002399/0.3117, allocations: 190.2 kB / 377.5 MB, free: 23.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.3118, allocations: 28.47 kB / 377.5 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005835/0.3124, allocations: 95.47 kB / 377.6 MB, free: 23.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002963/0.3127, allocations: 125.6 kB / 377.8 MB, free: 23.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.317e-05/0.3128, allocations: 27.17 kB / 377.8 MB, free: 23.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002599/0.313, allocations: 231.3 kB / 378 MB, free: 22.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.32e-07/0.313, allocations: 0 / 378 MB, free: 22.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007225/0.3138, allocations: 169.6 kB / 378.2 MB, free: 22.88 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.0002452/0.314, allocations: 161.2 kB / 378.3 MB, free: 22.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.3157, allocations: 0.7749 MB / 379.1 MB, free: 22.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3157, allocations: 0 / 379.1 MB, free: 22.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007607/0.3164, allocations: 431.3 kB / 379.5 MB, free: 22.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.3171, allocations: 93 kB / 379.6 MB, free: 22.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/0.3194, allocations: 1.384 MB / 381 MB, free: 21.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.3198, allocations: 0.8449 MB / 381.9 MB, free: 20.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001989/0.32, allocations: 46.91 kB / 381.9 MB, free: 20.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.3202, allocations: 45.3 kB / 381.9 MB, free: 20.81 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3202, allocations: 1.094 kB / 381.9 MB, free: 20.81 MB / 302.1 MB Notification: Performance of Templates: time 0.01862/0.3388, allocations: 13.57 MB / 395.5 MB, free: 13.26 MB / 302.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 -s gbode -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