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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 96.34 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00104/0.00104, allocations: 207.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.7 MB / 247.5 MB, free: 11.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002492/0.0002491, allocations: 8 kB / 308.4 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09899/0.09925, allocations: 51.53 MB / 359.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003657/0.103, allocations: 2.89 MB / 362.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.1052, allocations: 1.224 MB / 364 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003765/0.1057, allocations: 7.938 kB / 364 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004043/0.1061, allocations: 71.55 kB / 364.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006351/0.1067, allocations: 194.8 kB / 364.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006133/0.1074, allocations: 239.6 kB / 364.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000967/0.1083, allocations: 0.8076 MB / 365.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002612/0.1086, allocations: 124.8 kB / 365.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006792/0.1093, allocations: 342.7 kB / 365.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005928/0.1099, allocations: 370.6 kB / 366.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.1101, allocations: 36 kB / 366.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003056/0.1104, allocations: 87.97 kB / 366.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002102/0.1106, allocations: 147.4 kB / 366.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003534/0.111, allocations: 316.2 kB / 366.7 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006404/0.1116, allocations: 0.5612 MB / 367.3 MB, free: 5.836 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1116, allocations: 3.938 kB / 367.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1116, allocations: 4 kB / 367.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.396e-05/0.1117, allocations: 0 / 367.3 MB, free: 5.828 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001929/0.1136, allocations: 0.8691 MB / 368.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1136, allocations: 8.031 kB / 368.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000389/0.114, allocations: 88.17 kB / 368.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005607/0.1146, allocations: 389.9 kB / 368.6 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.329e-05/0.1147, allocations: 37.38 kB / 368.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.1148, allocations: 48.38 kB / 368.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.116, allocations: 0.6269 MB / 369.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.116, allocations: 7.906 kB / 369.4 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.283e-05/0.1161, allocations: 16 kB / 369.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.1161, allocations: 15.94 kB / 369.4 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.1174, allocations: 0.605 MB / 370 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.12, allocations: 1.391 MB / 371.4 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.1211, allocations: 0.5129 MB / 371.9 MB, free: 1.055 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006169/0.1218, allocations: 322.4 kB / 372.2 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.574e-05/0.1218, allocations: 12.55 kB / 372.2 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.1219, allocations: 43.11 kB / 372.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.625e-06/0.1219, allocations: 0 / 372.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1819/0.3037, allocations: 3.053 MB / 375.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.3038, allocations: 60.94 kB / 375.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005784/0.3044, allocations: 361.6 kB / 375.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.782e-05/0.3045, allocations: 51.05 kB / 375.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.3047, allocations: 201.6 kB / 376 MB, free: 18.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002421/0.3049, allocations: 256 kB / 376.2 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.305, allocations: 67.59 kB / 376.3 MB, free: 17.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.771e-05/0.3051, allocations: 359.8 kB / 376.6 MB, free: 17.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006309/0.3058, allocations: 313.3 kB / 377 MB, free: 17.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000689/0.3065, allocations: 385.4 kB / 377.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000954/0.3074, allocations: 0.5003 MB / 377.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.3075, allocations: 0 / 377.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001998/0.3095, allocations: 0.965 MB / 378.8 MB, free: 16.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.3095, allocations: 8.781 kB / 378.8 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.3095, allocations: 2.062 kB / 378.8 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.3109, allocations: 0.5716 MB / 379.4 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003976/0.3113, allocations: 97.34 kB / 379.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.3127, allocations: 1.116 MB / 380.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008168/0.3135, allocations: 148.4 kB / 380.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.338e-05/0.3136, allocations: 23.52 kB / 380.8 MB, free: 15.9 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 (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.000323/0.3139, allocations: 195.6 kB / 380.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.314, allocations: 55.84 kB / 381 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.3142, allocations: 75.81 kB / 381.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3142, allocations: 14.41 kB / 381.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.3142, allocations: 3.938 kB / 381.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.3143, allocations: 4.078 kB / 381.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002828/0.3171, allocations: 1.647 MB / 382.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3171, allocations: 0 / 382.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004058/0.3175, allocations: 96.2 kB / 382.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001191/0.3187, allocations: 0.5383 MB / 383.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.356e-05/0.3188, allocations: 26.61 kB / 383.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001325/0.3201, allocations: 1.071 MB / 384.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3201, allocations: 0.6562 kB / 384.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.3227, allocations: 1.346 MB / 385.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002727/0.3229, allocations: 198 kB / 386 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.3231, allocations: 25.84 kB / 386 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007191/0.3238, allocations: 142.9 kB / 386.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003142/0.3241, allocations: 134.5 kB / 386.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.075e-05/0.3242, allocations: 31.67 kB / 386.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002867/0.3245, allocations: 254 kB / 386.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3245, allocations: 4.656 kB / 386.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006138/0.3251, allocations: 156.3 kB / 386.7 MB, free: 12.91 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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008891/0.326, allocations: 385.9 kB / 387.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.3277, allocations: 0.7964 MB / 387.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3278, allocations: 0 / 387.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008926/0.3287, allocations: 444.6 kB / 388.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000766/0.3294, allocations: 107.9 kB / 388.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.3321, allocations: 1.807 MB / 390.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.3324, allocations: 0.8618 MB / 391.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.3326, allocations: 46.56 kB / 391.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3326, allocations: 0 / 391.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of Templates: time 0.01068/0.3433, allocations: 9.172 MB / 400.3 MB, free: 4.918 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches