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.0008069/0.0008067, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008935/0.0008936, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.7 MB / 246.8 MB, free: 9.684 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000211/0.000211, allocations: 4 kB / 307.7 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.094/0.09422, allocations: 51.53 MB / 359.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00236/0.09662, allocations: 2.021 MB / 361.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.09785, allocations: 0.8374 MB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.55e-05/0.09795, allocations: 0 / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.09818, allocations: 39.77 kB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002347/0.09842, allocations: 99.44 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001555/0.09859, allocations: 63.92 kB / 362.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.09885, allocations: 271.3 kB / 362.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.099, allocations: 52.34 kB / 362.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.09918, allocations: 111.6 kB / 362.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.09937, allocations: 115.5 kB / 362.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.983e-05/0.09941, allocations: 12 kB / 362.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.09954, allocations: 71.97 kB / 362.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.457e-05/0.09961, allocations: 43.83 kB / 363 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.09978, allocations: 125.1 kB / 363.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.1001, allocations: 295.2 kB / 363.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.1001, allocations: 0 / 363.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1001, allocations: 0 / 363.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1001, allocations: 0 / 363.4 MB, free: 8.941 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.0007133/0.1008, allocations: 0.5069 MB / 363.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.1009, allocations: 11.97 kB / 363.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.1011, allocations: 36.64 kB / 363.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002787/0.1013, allocations: 255.8 kB / 364.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.1014, allocations: 16.75 kB / 364.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.796e-05/0.1014, allocations: 16.38 kB / 364.2 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003709/0.1018, allocations: 219 kB / 364.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.1018, allocations: 7.938 kB / 364.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.1019, allocations: 8 kB / 364.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.1019, allocations: 4 kB / 364.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003267/0.1022, allocations: 163 kB / 364.6 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.1033, allocations: 0.7779 MB / 365.4 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003384/0.1036, allocations: 146.5 kB / 365.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.1038, allocations: 73.02 kB / 365.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.1038, allocations: 7.938 kB / 365.6 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.1038, allocations: 30.56 kB / 365.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.1038, allocations: 0 / 365.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001872/0.1057, allocations: 1.027 MB / 366.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.1058, allocations: 59.39 kB / 366.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.106, allocations: 214.8 kB / 366.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.106, allocations: 29.7 kB / 367 MB, free: 5.031 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.7e-05/0.1061, allocations: 144.2 kB / 367.1 MB, free: 4.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.426e-05/0.1062, allocations: 71 kB / 367.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.1062, allocations: 29.7 kB / 367.2 MB, free: 4.781 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.1063, allocations: 330.8 kB / 367.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.1065, allocations: 75.97 kB / 367.6 MB, free: 4.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.1067, allocations: 107.3 kB / 367.7 MB, free: 4.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.107, allocations: 165.1 kB / 367.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.107, allocations: 0 / 367.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004686/0.1075, allocations: 278 kB / 368.1 MB, free: 3.805 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.1075, allocations: 4 kB / 368.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1075, allocations: 4 kB / 368.1 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001909/0.1077, allocations: 56.89 kB / 368.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.1078, allocations: 43.91 kB / 368.2 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/0.1096, allocations: 1.647 MB / 369.9 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000205/0.1098, allocations: 32.08 kB / 369.9 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.259e-05/0.1098, allocations: 20.05 kB / 369.9 MB, free: 1.859 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.0001209/0.11, allocations: 133.7 kB / 370.1 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.783e-05/0.11, allocations: 19.81 kB / 370.1 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.52e-05/0.1101, allocations: 33.8 kB / 370.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.1101, allocations: 8 kB / 370.1 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1101, allocations: 3.938 kB / 370.1 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1101, allocations: 0 / 370.1 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008352/0.111, allocations: 0.61 MB / 370.7 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.111, allocations: 4.062 kB / 370.7 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.1112, allocations: 35.97 kB / 370.8 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001379/0.1113, allocations: 52.83 kB / 370.8 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.1113, allocations: 7.984 kB / 370.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1777/0.289, allocations: 1.549 MB / 372.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.2891, allocations: 3.375 kB / 372.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007158/0.2898, allocations: 438.8 kB / 372.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.81e-05/0.2899, allocations: 109 kB / 372.9 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.2899, allocations: 7.125 kB / 372.9 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.2901, allocations: 32.17 kB / 373 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.2903, allocations: 63.08 kB / 373 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.2903, allocations: 13.11 kB / 373 MB, free: 17.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001539/0.2905, allocations: 158.1 kB / 373.2 MB, free: 17.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2905, allocations: 0 / 373.2 MB, free: 17.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004236/0.2909, allocations: 66.55 kB / 373.3 MB, free: 17.48 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.0007745/0.2917, allocations: 359.7 kB / 373.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00057/0.2923, allocations: 317 kB / 373.9 MB, free: 17.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2923, allocations: 0 / 373.9 MB, free: 17.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002977/0.2926, allocations: 235.4 kB / 374.2 MB, free: 17.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.293, allocations: 45.7 kB / 374.2 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.2943, allocations: 0.8628 MB / 375.1 MB, free: 16.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.2945, allocations: 0.7454 MB / 375.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.2946, allocations: 27.92 kB / 375.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.648e-05/0.2947, allocations: 21.16 kB / 375.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2947, allocations: 0 / 375.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of Templates: time 0.008213/0.3029, allocations: 3.55 MB / 379.4 MB, free: 15.66 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