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.001055/0.001055, allocations: 102 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 194.5 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002092/0.0002093, allocations: 12 kB / 307.1 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0929/0.09312, allocations: 51.51 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003118/0.09627, allocations: 2.775 MB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.09806, allocations: 1.19 MB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.09822, allocations: 7.938 kB / 362.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002687/0.0985, allocations: 75.53 kB / 362.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003301/0.09884, allocations: 186.8 kB / 362.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.09922, allocations: 207.6 kB / 363.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006446/0.09987, allocations: 0.7413 MB / 363.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.1001, allocations: 111.1 kB / 363.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004116/0.1005, allocations: 330.8 kB / 364.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004087/0.1009, allocations: 374.6 kB / 364.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.142e-05/0.101, allocations: 32 kB / 364.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.1012, allocations: 87.97 kB / 364.7 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.1014, allocations: 139.5 kB / 364.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.1015, allocations: 125.4 kB / 365 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005983/0.1021, allocations: 0.5496 MB / 365.5 MB, free: 6.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1021, allocations: 4 kB / 365.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1021, allocations: 0 / 365.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1021, allocations: 0 / 365.5 MB, free: 6.727 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.00163/0.1038, allocations: 0.8806 MB / 366.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1038, allocations: 8.031 kB / 366.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003106/0.1041, allocations: 91.16 kB / 366.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005038/0.1047, allocations: 373.1 kB / 366.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.329e-05/0.1047, allocations: 40.94 kB / 366.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-05/0.1048, allocations: 47.91 kB / 367 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.106, allocations: 0.6228 MB / 367.6 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.106, allocations: 7.906 kB / 367.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.61e-05/0.1061, allocations: 16 kB / 367.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.1061, allocations: 12 kB / 367.6 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.1075, allocations: 0.6088 MB / 368.2 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/0.1098, allocations: 1.391 MB / 369.6 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.1109, allocations: 0.5052 MB / 370.1 MB, free: 1.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006122/0.1116, allocations: 322.4 kB / 370.4 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.868e-05/0.1116, allocations: 12.55 kB / 370.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.1117, allocations: 43.06 kB / 370.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 1.654e-06/0.1117, allocations: 0 / 370.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1631/0.2748, allocations: 3.049 MB / 373.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.2748, allocations: 59.56 kB / 373.6 MB, free: 18.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004214/0.2752, allocations: 354.1 kB / 373.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.767e-05/0.2753, allocations: 52.98 kB / 374 MB, free: 18.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.2755, allocations: 203.4 kB / 374.2 MB, free: 18.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.2756, allocations: 251.7 kB / 374.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.782e-05/0.2757, allocations: 14.38 kB / 374.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.425e-05/0.2758, allocations: 358.9 kB / 374.8 MB, free: 18.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006301/0.2764, allocations: 317.1 kB / 375.1 MB, free: 18.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007648/0.2772, allocations: 380.3 kB / 375.5 MB, free: 18.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005839/0.2778, allocations: 247.1 kB / 375.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2778, allocations: 1.125 kB / 375.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001773/0.2796, allocations: 0.9513 MB / 376.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.2796, allocations: 5.5 kB / 376.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.2796, allocations: 1.344 kB / 376.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.2809, allocations: 0.5746 MB / 377.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/0.2813, allocations: 100.8 kB / 377.4 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.2826, allocations: 1.106 MB / 378.5 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/0.2833, allocations: 147.1 kB / 378.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.608e-05/0.2833, allocations: 26.66 kB / 378.6 MB, free: 16.72 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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of prepare postOptimizeDAE: time 0.0002143/0.2836, allocations: 192.4 kB / 378.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.659e-05/0.2837, allocations: 54.81 kB / 378.9 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001646/0.2838, allocations: 79.39 kB / 379 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.2838, allocations: 7.219 kB / 379 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.2839, allocations: 0 / 379 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.2839, allocations: 9.219 kB / 379 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002576/0.2864, allocations: 1.637 MB / 380.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2865, allocations: 7.688 kB / 380.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003897/0.2869, allocations: 94 kB / 380.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/0.288, allocations: 0.5313 MB / 381.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.47e-05/0.2881, allocations: 31.75 kB / 381.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/0.2894, allocations: 1.075 MB / 382.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2894, allocations: 0 / 382.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.2918, allocations: 1.331 MB / 383.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.292, allocations: 199.9 kB / 383.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.2922, allocations: 30.12 kB / 383.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006284/0.2928, allocations: 144.4 kB / 384 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003343/0.2931, allocations: 159.8 kB / 384.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-05/0.2932, allocations: 27.23 kB / 384.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002895/0.2935, allocations: 252.2 kB / 384.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2935, allocations: 1.5 kB / 384.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006338/0.2942, allocations: 163.5 kB / 384.6 MB, free: 13.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009767/0.2951, allocations: 389.7 kB / 385 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.2969, allocations: 0.7796 MB / 385.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2969, allocations: 0 / 385.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008523/0.2977, allocations: 452.6 kB / 386.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.2984, allocations: 104.6 kB / 386.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.3008, allocations: 1.71 MB / 388 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.3012, allocations: 0.8641 MB / 388.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00021/0.3014, allocations: 48.58 kB / 389 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.3015, allocations: 48.2 kB / 389 MB, free: 11.23 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3016, allocations: 0 / 389 MB, free: 11.23 MB / 302.1 MB Notification: Performance of Templates: time 0.0152/0.3168, allocations: 12.38 MB / 401.4 MB, free: 3.234 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches