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.001023/0.001023, allocations: 118.1 kB / 17.79 MB, free: 5.305 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: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 71.88 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2919, allocations: 50.53 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004295/0.2962, allocations: 2.32 MB / 411.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.2978, allocations: 0.8529 MB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.298, allocations: 4 kB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003102/0.2984, allocations: 55.56 kB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003411/0.2987, allocations: 107.2 kB / 412.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.299, allocations: 79.78 kB / 412.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003393/0.2993, allocations: 283.4 kB / 412.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.2995, allocations: 67.28 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002803/0.2998, allocations: 127.5 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.3001, allocations: 127.5 kB / 413.2 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.823e-05/0.3001, allocations: 20 kB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.3003, allocations: 79.98 kB / 413.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.698e-05/0.3004, allocations: 55.81 kB / 413.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.3006, allocations: 111.4 kB / 413.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005243/0.3011, allocations: 312.1 kB / 413.8 MB, free: 13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3011, allocations: 0 / 413.8 MB, free: 13 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3011, allocations: 0 / 413.8 MB, free: 13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.3011, allocations: 0 / 413.8 MB, free: 13 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.0009038/0.302, allocations: 0.5457 MB / 414.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.3021, allocations: 8.031 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.3023, allocations: 36.64 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.3027, allocations: 247.9 kB / 414.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.3027, allocations: 16.75 kB / 414.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/0.3027, allocations: 20.28 kB / 414.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003781/0.3031, allocations: 215 kB / 414.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.3032, allocations: 7.938 kB / 414.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.3032, allocations: 11.94 kB / 414.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.3032, allocations: 8 kB / 414.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003268/0.3035, allocations: 155 kB / 415.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.3047, allocations: 0.774 MB / 415.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004022/0.3051, allocations: 154.7 kB / 416 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.3053, allocations: 64.84 kB / 416.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.3053, allocations: 4 kB / 416.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.3053, allocations: 30.56 kB / 416.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.693e-06/0.3053, allocations: 0 / 416.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001926/0.3073, allocations: 1 MB / 417.1 MB, free: 9.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.3073, allocations: 51.41 kB / 417.1 MB, free: 9.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.3076, allocations: 218.8 kB / 417.3 MB, free: 9.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.3076, allocations: 29.7 kB / 417.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.759e-05/0.3077, allocations: 144.2 kB / 417.5 MB, free: 8.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.829e-05/0.3078, allocations: 74.91 kB / 417.6 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.251e-05/0.3079, allocations: 45.7 kB / 417.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.308, allocations: 338.8 kB / 418 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.3082, allocations: 71.91 kB / 418 MB, free: 8.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.3083, allocations: 111.3 kB / 418.1 MB, free: 8.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.3086, allocations: 151.4 kB / 418.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3087, allocations: 7.938 kB / 418.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004982/0.3092, allocations: 274 kB / 418.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3092, allocations: 4 kB / 418.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3092, allocations: 0 / 418.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002133/0.3094, allocations: 56.83 kB / 418.6 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.3096, allocations: 35.92 kB / 418.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/0.3114, allocations: 1.833 MB / 420.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.3116, allocations: 20.02 kB / 420.5 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.3116, allocations: 11.98 kB / 420.5 MB, free: 5.758 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.0001266/0.3117, allocations: 141 kB / 420.7 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/0.3118, allocations: 23.81 kB / 420.7 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.206e-05/0.3119, allocations: 21.88 kB / 420.7 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3119, allocations: 7.984 kB / 420.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.3119, allocations: 3.938 kB / 420.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3119, allocations: 0 / 420.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008694/0.3128, allocations: 0.6064 MB / 421.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3128, allocations: 4.062 kB / 421.3 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.313, allocations: 31.98 kB / 421.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001513/0.3131, allocations: 52.83 kB / 421.4 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.3132, allocations: 7.984 kB / 421.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.3148, allocations: 1.665 MB / 423.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3148, allocations: 0 / 423.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006612/0.3154, allocations: 424.7 kB / 423.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.3156, allocations: 112.9 kB / 423.6 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.3157, allocations: 8 kB / 423.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.3159, allocations: 27.92 kB / 423.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.316, allocations: 67.84 kB / 423.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.316, allocations: 8 kB / 423.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001462/0.3162, allocations: 156.6 kB / 423.9 MB, free: 2.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3162, allocations: 0 / 423.9 MB, free: 2.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003916/0.3166, allocations: 68 kB / 423.9 MB, free: 2.082 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.0008626/0.3175, allocations: 359.8 kB / 424.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005874/0.3181, allocations: 322.5 kB / 424.6 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3181, allocations: 4.125 kB / 424.6 MB, free: 1.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003217/0.3184, allocations: 226.5 kB / 424.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.3188, allocations: 51.83 kB / 424.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.3201, allocations: 0.6882 MB / 425.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003977/0.3205, allocations: 0.7441 MB / 426.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.976e-05/0.3206, allocations: 29.92 kB / 426.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.552e-05/0.3207, allocations: 23.44 kB / 426.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3207, allocations: 0 / 426.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of Templates: time 0.008318/0.329, allocations: 3.968 MB / 430.3 MB, free: 11.73 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