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.001802/0.001802, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001839/0.00184, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 59.28 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09929, allocations: 50.54 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004669/0.104, allocations: 3.234 MB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.1061, allocations: 1.244 MB / 363.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.1063, allocations: 11.94 kB / 363.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003451/0.1066, allocations: 91.11 kB / 363.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003904/0.107, allocations: 222.4 kB / 363.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004806/0.1075, allocations: 279.5 kB / 364 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007476/0.1083, allocations: 0.8427 MB / 364.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.1085, allocations: 133.1 kB / 364.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004633/0.109, allocations: 386.8 kB / 365.3 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004518/0.1095, allocations: 402.6 kB / 365.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.035e-05/0.1096, allocations: 64 kB / 365.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000214/0.1098, allocations: 120 kB / 365.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.11, allocations: 187.4 kB / 366.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002865/0.1103, allocations: 322.4 kB / 366.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007219/0.111, allocations: 0.7943 MB / 367.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.111, allocations: 0 / 367.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.111, allocations: 4 kB / 367.2 MB, free: 5.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.868e-06/0.1111, allocations: 0 / 367.2 MB, free: 5.027 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.00175/0.1128, allocations: 0.939 MB / 368.1 MB, free: 4.035 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1129, allocations: 15.97 kB / 368.1 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.1132, allocations: 84.16 kB / 368.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005954/0.1138, allocations: 401.9 kB / 368.6 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.811e-05/0.1138, allocations: 37.38 kB / 368.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.5e-05/0.1139, allocations: 48.28 kB / 368.7 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.115, allocations: 0.6152 MB / 369.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.115, allocations: 8 kB / 369.3 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.324e-05/0.1151, allocations: 16 kB / 369.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.1151, allocations: 8 kB / 369.3 MB, free: 2.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.1164, allocations: 0.5933 MB / 369.9 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.1186, allocations: 1.344 MB / 371.3 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.1197, allocations: 0.5028 MB / 371.8 MB, free: 264 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1906/0.3103, allocations: 315.3 kB / 372.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.3105, allocations: 10.23 kB / 372.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.3106, allocations: 37.78 kB / 372.1 MB, free: 20.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.555e-06/0.3106, allocations: 0 / 372.1 MB, free: 20.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.007097/0.3177, allocations: 2.891 MB / 375 MB, free: 19.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.3177, allocations: 64.84 kB / 375.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005434/0.3183, allocations: 365.6 kB / 375.5 MB, free: 18.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.009e-05/0.3184, allocations: 48.33 kB / 375.5 MB, free: 18.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.3185, allocations: 201.6 kB / 375.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.3187, allocations: 251.7 kB / 375.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/0.3189, allocations: 136.2 kB / 376.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.3191, allocations: 358.2 kB / 376.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006651/0.3197, allocations: 307.4 kB / 376.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006984/0.3204, allocations: 372.8 kB / 377.1 MB, free: 17.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009735/0.3214, allocations: 497.1 kB / 377.6 MB, free: 17.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3214, allocations: 3.281 kB / 377.6 MB, free: 17.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001994/0.3234, allocations: 0.9395 MB / 378.5 MB, free: 17.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.3235, allocations: 7.094 kB / 378.5 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.3235, allocations: 2.031 kB / 378.5 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.3248, allocations: 0.5732 MB / 379.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003709/0.3252, allocations: 101 kB / 379.2 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.3267, allocations: 1.103 MB / 380.3 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007079/0.3274, allocations: 112.9 kB / 380.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-05/0.3275, allocations: 22.52 kB / 380.4 MB, free: 16.28 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.0003124/0.3278, allocations: 190.6 kB / 380.6 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.3279, allocations: 54.66 kB / 380.7 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.3281, allocations: 75.3 kB / 380.7 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.3281, allocations: 11.72 kB / 380.8 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.3281, allocations: 0.7812 kB / 380.8 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.3282, allocations: 5.219 kB / 380.8 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002963/0.3311, allocations: 1.636 MB / 382.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3311, allocations: 0.75 kB / 382.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004149/0.3316, allocations: 89.34 kB / 382.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.3328, allocations: 0.5305 MB / 383 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-05/0.3329, allocations: 28.45 kB / 383 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.3343, allocations: 1.071 MB / 384.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3343, allocations: 1.031 kB / 384.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002597/0.3369, allocations: 1.328 MB / 385.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003077/0.3372, allocations: 196.1 kB / 385.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.3373, allocations: 28.75 kB / 385.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006335/0.338, allocations: 98.23 kB / 385.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003254/0.3383, allocations: 128.9 kB / 385.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-05/0.3384, allocations: 40.59 kB / 385.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003242/0.3387, allocations: 255 kB / 386.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3387, allocations: 0 / 386.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006373/0.3394, allocations: 161 kB / 386.3 MB, free: 13.31 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.000938/0.3403, allocations: 392.7 kB / 386.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001998/0.3423, allocations: 0.7674 MB / 387.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3423, allocations: 4.062 kB / 387.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009809/0.3433, allocations: 441.6 kB / 387.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008052/0.3441, allocations: 117 kB / 388 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.3465, allocations: 1.418 MB / 389.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.3469, allocations: 0.8619 MB / 390.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.3471, allocations: 55.98 kB / 390.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.3472, allocations: 47.53 kB / 390.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3472, allocations: 0 / 390.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of Templates: time 0.01774/0.365, allocations: 13.66 MB / 404.1 MB, free: 1.164 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 -s cvode -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