Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009432/0.0009431, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001223, allocations: 68.66 kB / 306.9 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08969/0.09093, allocations: 50.53 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003613/0.09457, allocations: 2.319 MB / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.09607, allocations: 0.8568 MB / 360.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.09626, allocations: 4 kB / 360.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002373/0.09653, allocations: 51.56 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003102/0.09685, allocations: 107.2 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.0971, allocations: 79.84 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000312/0.09742, allocations: 275.3 kB / 361.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.09758, allocations: 76.28 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002266/0.09781, allocations: 123.5 kB / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.09803, allocations: 123.5 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.036e-05/0.09808, allocations: 20 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.09826, allocations: 83.91 kB / 361.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.073e-05/0.09833, allocations: 51.83 kB / 361.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.09845, allocations: 119.4 kB / 361.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004729/0.09893, allocations: 303.3 kB / 362 MB, free: 9.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.09895, allocations: 4 kB / 362 MB, free: 9.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.09896, allocations: 3.984 kB / 362 MB, free: 9.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.09898, allocations: 0 / 362 MB, free: 9.469 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.00106/0.1, allocations: 0.5302 MB / 362.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.1001, allocations: 8.031 kB / 362.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002295/0.1003, allocations: 32.66 kB / 362.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003808/0.1007, allocations: 259.7 kB / 362.9 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.1008, allocations: 16.75 kB / 362.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-05/0.1008, allocations: 20.38 kB / 362.9 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.1012, allocations: 218.9 kB / 363.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.1012, allocations: 0 / 363.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.1013, allocations: 8 kB / 363.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1013, allocations: 4 kB / 363.1 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003262/0.1016, allocations: 163 kB / 363.3 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.1027, allocations: 0.774 MB / 364.1 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003611/0.1031, allocations: 150.7 kB / 364.2 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.1033, allocations: 64.84 kB / 364.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.1033, allocations: 4 kB / 364.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.1033, allocations: 42.48 kB / 364.3 MB, free: 7.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.313e-06/0.1033, allocations: 0 / 364.3 MB, free: 7.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001823/0.1052, allocations: 0.9944 MB / 365.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.1052, allocations: 51.41 kB / 365.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.1054, allocations: 222.8 kB / 365.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.1055, allocations: 29.7 kB / 365.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.848e-05/0.1056, allocations: 140.2 kB / 365.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.553e-05/0.1056, allocations: 74.98 kB / 365.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-05/0.1057, allocations: 49.61 kB / 365.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1058, allocations: 338.8 kB / 366.2 MB, free: 4.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/0.106, allocations: 71.97 kB / 366.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.1062, allocations: 111.4 kB / 366.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.1065, allocations: 157 kB / 366.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1065, allocations: 4 kB / 366.5 MB, free: 4.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004907/0.107, allocations: 270 kB / 366.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.107, allocations: 6.969 kB / 366.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.107, allocations: 0 / 366.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000188/0.1072, allocations: 56.83 kB / 366.9 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.1074, allocations: 35.98 kB / 366.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.1093, allocations: 1.825 MB / 368.7 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.1095, allocations: 19.98 kB / 368.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.1096, allocations: 15.98 kB / 368.7 MB, free: 2.238 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.1097, allocations: 133.8 kB / 368.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.1098, allocations: 27.66 kB / 368.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.425e-05/0.1098, allocations: 29.86 kB / 368.9 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1098, allocations: 4 kB / 368.9 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1098, allocations: 4.062 kB / 368.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1099, allocations: 0 / 368.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009055/0.1108, allocations: 0.6023 MB / 369.5 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.1108, allocations: 3.938 kB / 369.5 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.111, allocations: 47.84 kB / 369.6 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.1111, allocations: 48.83 kB / 369.6 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/0.1112, allocations: 11.98 kB / 369.7 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1626/0.2738, allocations: 1.652 MB / 371.3 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.2738, allocations: 1.5 kB / 371.3 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.275, allocations: 426.5 kB / 371.7 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/0.2751, allocations: 112 kB / 371.8 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.123e-05/0.2752, allocations: 6.609 kB / 371.8 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003001/0.2755, allocations: 20.36 kB / 371.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.2758, allocations: 71.92 kB / 371.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.2758, allocations: 5.734 kB / 371.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002276/0.276, allocations: 160.1 kB / 372.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2761, allocations: 0 / 372.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007149/0.2768, allocations: 72.34 kB / 372.2 MB, free: 18.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001217/0.278, allocations: 370.2 kB / 372.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008996/0.2789, allocations: 315.7 kB / 372.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.279, allocations: 1.688 kB / 372.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004469/0.2794, allocations: 231 kB / 373.1 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006873/0.2801, allocations: 44.08 kB / 373.1 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002262/0.2824, allocations: 0.6978 MB / 373.8 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.2827, allocations: 0.7448 MB / 374.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.2829, allocations: 36.22 kB / 374.6 MB, free: 17.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.433e-05/0.283, allocations: 24.31 kB / 374.6 MB, free: 17.13 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.283, allocations: 0.5312 kB / 374.6 MB, free: 17.13 MB / 302.1 MB Notification: Performance of Templates: time 0.01482/0.2978, allocations: 3.898 MB / 378.5 MB, free: 16.87 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches