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.001183/0.001183, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001448/0.001448, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2948, allocations: 50.54 MB / 409.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003403/0.2982, allocations: 2.336 MB / 411.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.2995, allocations: 0.8452 MB / 412.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.2996, allocations: 4 kB / 412.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002561/0.2999, allocations: 55.56 kB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002446/0.3001, allocations: 107.2 kB / 412.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001854/0.3003, allocations: 83.77 kB / 412.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002796/0.3006, allocations: 279.4 kB / 412.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.3008, allocations: 64.3 kB / 413 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001955/0.301, allocations: 127.5 kB / 413.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.3012, allocations: 127.5 kB / 413.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.84e-05/0.3012, allocations: 20 kB / 413.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.3014, allocations: 79.97 kB / 413.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.508e-05/0.3015, allocations: 51.83 kB / 413.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.871e-05/0.3016, allocations: 119.4 kB / 413.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003386/0.3019, allocations: 312.1 kB / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3019, allocations: 0 / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3019, allocations: 0 / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3019, allocations: 0 / 413.8 MB, free: 12.96 MB / 334.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.0007731/0.3027, allocations: 0.5418 MB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.3028, allocations: 8.031 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.3029, allocations: 32.66 kB / 414.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.3033, allocations: 247.9 kB / 414.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.3033, allocations: 16.75 kB / 414.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.428e-05/0.3033, allocations: 24.28 kB / 414.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003624/0.3037, allocations: 219 kB / 414.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.3037, allocations: 3.938 kB / 414.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.3038, allocations: 7.938 kB / 414.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.3038, allocations: 11.98 kB / 414.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002981/0.3041, allocations: 155 kB / 415.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3051, allocations: 0.7779 MB / 415.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.3054, allocations: 146.7 kB / 416 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.3056, allocations: 68.83 kB / 416.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.3056, allocations: 4 kB / 416.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.3056, allocations: 30.56 kB / 416.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.413e-06/0.3057, allocations: 4 kB / 416.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00176/0.3074, allocations: 0.9946 MB / 417.1 MB, free: 9.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.843e-05/0.3075, allocations: 51.41 kB / 417.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002087/0.3077, allocations: 222.8 kB / 417.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.3077, allocations: 29.69 kB / 417.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.949e-05/0.3078, allocations: 136.3 kB / 417.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.384e-05/0.3078, allocations: 78.89 kB / 417.6 MB, free: 8.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.257e-05/0.3079, allocations: 49.7 kB / 417.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.308, allocations: 334.8 kB / 418 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.3082, allocations: 71.91 kB / 418 MB, free: 8.387 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.3084, allocations: 115.3 kB / 418.1 MB, free: 8.262 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/0.3086, allocations: 163.3 kB / 418.3 MB, free: 8.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.3086, allocations: 0 / 418.3 MB, free: 8.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004462/0.3091, allocations: 266 kB / 418.6 MB, free: 7.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.3091, allocations: 4 kB / 418.6 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.3091, allocations: 3.984 kB / 418.6 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001986/0.3093, allocations: 52.84 kB / 418.6 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.3095, allocations: 43.97 kB / 418.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001767/0.3113, allocations: 1.822 MB / 420.5 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.3115, allocations: 24 kB / 420.5 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.3115, allocations: 8 kB / 420.5 MB, free: 5.73 MB / 334.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.0001292/0.3116, allocations: 141.8 kB / 420.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.016e-05/0.3117, allocations: 19.75 kB / 420.7 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.858e-05/0.3118, allocations: 25.86 kB / 420.7 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3118, allocations: 4 kB / 420.7 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.3118, allocations: 3.938 kB / 420.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3118, allocations: 0 / 420.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008165/0.3126, allocations: 0.6206 MB / 421.3 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3126, allocations: 0 / 421.3 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.3128, allocations: 31.98 kB / 421.4 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001367/0.3129, allocations: 52.83 kB / 421.4 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.313, allocations: 8 kB / 421.4 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.3144, allocations: 1.657 MB / 423.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3144, allocations: 4.062 kB / 423.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006294/0.315, allocations: 426 kB / 423.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.394e-05/0.3151, allocations: 108.9 kB / 423.6 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.3152, allocations: 8 kB / 423.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001907/0.3154, allocations: 35.91 kB / 423.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.3155, allocations: 71.84 kB / 423.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3156, allocations: 4 kB / 423.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001406/0.3157, allocations: 156.6 kB / 423.9 MB, free: 2.109 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3157, allocations: 0 / 423.9 MB, free: 2.109 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003823/0.3161, allocations: 68 kB / 423.9 MB, free: 2.043 MB / 334.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.0008114/0.3169, allocations: 355.6 kB / 424.3 MB, free: 1.797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005674/0.3175, allocations: 326.5 kB / 424.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3175, allocations: 0 / 424.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003011/0.3178, allocations: 230.5 kB / 424.8 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000402/0.3182, allocations: 42.56 kB / 424.9 MB, free: 1.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.3195, allocations: 0.6921 MB / 425.6 MB, free: 476 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3198, allocations: 0.744 MB / 426.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.301e-05/0.3199, allocations: 25.94 kB / 426.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.413e-05/0.3199, allocations: 27.42 kB / 426.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3199, allocations: 0 / 426.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Templates: time 0.007207/0.3271, allocations: 3.971 MB / 430.3 MB, free: 11.7 MB / 350.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