Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,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.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,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.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001201/0.001201, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 55.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3007, allocations: 50.54 MB / 409.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004371/0.3051, allocations: 2.278 MB / 412.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.3069, allocations: 0.8723 MB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002275/0.3071, allocations: 0 / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.3075, allocations: 51.58 kB / 413.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004254/0.3079, allocations: 107.2 kB / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003403/0.3083, allocations: 91.81 kB / 413.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004476/0.3087, allocations: 287.4 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.3089, allocations: 56.34 kB / 413.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000317/0.3093, allocations: 143.5 kB / 413.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003253/0.3096, allocations: 135.5 kB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.355e-05/0.3097, allocations: 20 kB / 413.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000206/0.3099, allocations: 75.98 kB / 414 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.31, allocations: 63.81 kB / 414.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.3101, allocations: 111.4 kB / 414.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004709/0.3106, allocations: 320.1 kB / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3106, allocations: 0 / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3106, allocations: 0 / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.3107, allocations: 0 / 414.5 MB, free: 12.95 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001229/0.3119, allocations: 0.59 MB / 415.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.3119, allocations: 8.031 kB / 415.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002078/0.3121, allocations: 36.64 kB / 415.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004642/0.3126, allocations: 249.5 kB / 415.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.3127, allocations: 12.38 kB / 415.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.23e-05/0.3127, allocations: 20.38 kB / 415.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.3132, allocations: 239.2 kB / 415.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.3133, allocations: 3.906 kB / 415.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.3133, allocations: 11.98 kB / 415.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3133, allocations: 4 kB / 415.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004852/0.3138, allocations: 179.9 kB / 415.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.3149, allocations: 0.6486 MB / 416.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006131/0.3155, allocations: 198.5 kB / 416.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.3158, allocations: 100.8 kB / 416.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.3158, allocations: 15.92 kB / 416.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00038/0.3162, allocations: 175 kB / 417 MB, free: 10.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.184e-06/0.3162, allocations: 0 / 417 MB, free: 10.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002583/0.3188, allocations: 1.156 MB / 418.1 MB, free: 9.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.3189, allocations: 55.41 kB / 418.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.3191, allocations: 195.4 kB / 418.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.3192, allocations: 33.7 kB / 418.4 MB, free: 8.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.803e-05/0.3193, allocations: 136.3 kB / 418.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.675e-05/0.3194, allocations: 90.73 kB / 418.6 MB, free: 8.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.92e-05/0.3195, allocations: 53.7 kB / 418.7 MB, free: 8.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3196, allocations: 338.8 kB / 419 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.3199, allocations: 103.9 kB / 419.1 MB, free: 8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002833/0.3202, allocations: 144.1 kB / 419.2 MB, free: 7.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005116/0.3207, allocations: 246.6 kB / 419.5 MB, free: 7.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3208, allocations: 0 / 419.5 MB, free: 7.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008212/0.3216, allocations: 373.6 kB / 419.8 MB, free: 7.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.566e-05/0.3216, allocations: 40.81 kB / 419.9 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3217, allocations: 4.062 kB / 419.9 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002242/0.3219, allocations: 56.78 kB / 419.9 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.3221, allocations: 51.89 kB / 420 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.3241, allocations: 1.803 MB / 421.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.3244, allocations: 36.02 kB / 421.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.3244, allocations: 8 kB / 421.8 MB, free: 5.066 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: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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.0001701/0.3246, allocations: 142.2 kB / 422 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.706e-05/0.3246, allocations: 27.66 kB / 422 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.584e-05/0.3247, allocations: 34.55 kB / 422 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3247, allocations: 4 kB / 422 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3247, allocations: 3.938 kB / 422 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.3247, allocations: 7.984 kB / 422.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.3259, allocations: 0.6753 MB / 422.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.3259, allocations: 7.984 kB / 422.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.3262, allocations: 35.97 kB / 422.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000144/0.3263, allocations: 60.78 kB / 422.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.3264, allocations: 7.984 kB / 422.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.328, allocations: 1.653 MB / 424.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3281, allocations: 3.938 kB / 424.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.3291, allocations: 0.5092 MB / 425 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.3292, allocations: 112.9 kB / 425.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.3292, allocations: 4 kB / 425.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002671/0.3295, allocations: 35.89 kB / 425.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.3297, allocations: 67.89 kB / 425.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.3297, allocations: 20 kB / 425.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.3299, allocations: 139.2 kB / 425.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3299, allocations: 3.938 kB / 425.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004453/0.3304, allocations: 76 kB / 425.5 MB, free: 1.199 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008957/0.3313, allocations: 363.5 kB / 425.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000929/0.3322, allocations: 441.8 kB / 426.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3322, allocations: 4 kB / 426.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004919/0.3327, allocations: 274.6 kB / 426.5 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.3332, allocations: 43.89 kB / 426.6 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.3346, allocations: 0.7004 MB / 427.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.3349, allocations: 0.744 MB / 428 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.07e-05/0.335, allocations: 31.42 kB / 428 MB, free: 14.63 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.335, allocations: 0 / 428 MB, free: 14.63 MB / 350.1 MB Notification: Performance of Templates: time 0.007865/0.3429, allocations: 4.366 MB / 432.4 MB, free: 10.29 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches