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.0008682/0.0008683, allocations: 95.14 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 200.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.7 MB / 247.5 MB, free: 9.469 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000243/0.0002431, allocations: 7.984 kB / 308.4 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1009, allocations: 51.53 MB / 359.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002933/0.1039, allocations: 2.006 MB / 361.9 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.1055, allocations: 0.8296 MB / 362.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001922/0.1057, allocations: 7.938 kB / 362.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003017/0.106, allocations: 43.75 kB / 362.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003765/0.1064, allocations: 95.52 kB / 362.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.1067, allocations: 63.86 kB / 363 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.1071, allocations: 271.3 kB / 363.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.1073, allocations: 56.34 kB / 363.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.1076, allocations: 111.6 kB / 363.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002567/0.1078, allocations: 123.5 kB / 363.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.84e-05/0.1079, allocations: 8 kB / 363.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.1081, allocations: 63.98 kB / 363.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.446e-05/0.1082, allocations: 51.7 kB / 363.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.1083, allocations: 129.1 kB / 363.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.1087, allocations: 215.7 kB / 364 MB, free: 8.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1087, allocations: 0 / 364 MB, free: 8.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1087, allocations: 0 / 364 MB, free: 8.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.1087, allocations: 0 / 364 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.0008609/0.1096, allocations: 0.5225 MB / 364.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1096, allocations: 8.031 kB / 364.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.1098, allocations: 40.64 kB / 364.5 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.1102, allocations: 259.7 kB / 364.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.1102, allocations: 16.75 kB / 364.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.497e-05/0.1102, allocations: 20.38 kB / 364.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000407/0.1107, allocations: 215 kB / 365 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.1107, allocations: 0 / 365 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.1107, allocations: 8 kB / 365 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.1107, allocations: 12 kB / 365.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000349/0.1111, allocations: 163 kB / 365.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.1123, allocations: 0.7741 MB / 366 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000378/0.1126, allocations: 142.5 kB / 366.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.1128, allocations: 73.02 kB / 366.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.1128, allocations: 4 kB / 366.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.1129, allocations: 38.56 kB / 366.2 MB, free: 6.477 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.353e-06/0.1129, allocations: 0 / 366.2 MB, free: 6.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001967/0.1148, allocations: 1.026 MB / 367.3 MB, free: 5.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.1149, allocations: 59.41 kB / 367.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002376/0.1152, allocations: 218.8 kB / 367.5 MB, free: 5.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.1152, allocations: 33.7 kB / 367.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.929e-05/0.1153, allocations: 140.2 kB / 367.7 MB, free: 4.871 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.954e-05/0.1154, allocations: 67 kB / 367.8 MB, free: 4.805 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.613e-05/0.1154, allocations: 33.7 kB / 367.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1155, allocations: 338.8 kB / 368.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.1157, allocations: 67.97 kB / 368.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.1159, allocations: 107.4 kB / 368.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.1162, allocations: 169 kB / 368.5 MB, free: 4.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1162, allocations: 0 / 368.5 MB, free: 4.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004994/0.1167, allocations: 270 kB / 368.7 MB, free: 3.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.1168, allocations: 12.06 kB / 368.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1168, allocations: 0 / 368.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/0.117, allocations: 64.7 kB / 368.8 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.1172, allocations: 39.97 kB / 368.8 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.119, allocations: 1.65 MB / 370.5 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.1192, allocations: 24.03 kB / 370.5 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.1193, allocations: 19.97 kB / 370.5 MB, free: 1.848 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.0001556/0.1194, allocations: 140.4 kB / 370.7 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.977e-05/0.1195, allocations: 19.81 kB / 370.7 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.446e-05/0.1196, allocations: 25.88 kB / 370.7 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1196, allocations: 7.984 kB / 370.7 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1196, allocations: 3.938 kB / 370.7 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.1196, allocations: 0 / 370.7 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009135/0.1205, allocations: 0.61 MB / 371.3 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1205, allocations: 4 kB / 371.3 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.1207, allocations: 35.92 kB / 371.4 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000147/0.1209, allocations: 52.83 kB / 371.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.1209, allocations: 8.047 kB / 371.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1878/0.3087, allocations: 1.559 MB / 373 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3088, allocations: 1.094 kB / 373 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008129/0.3096, allocations: 432.7 kB / 373.4 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.3097, allocations: 113.8 kB / 373.5 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.493e-05/0.3097, allocations: 6.719 kB / 373.5 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.31, allocations: 27.27 kB / 373.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.3101, allocations: 66.52 kB / 373.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.3102, allocations: 8.766 kB / 373.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.3103, allocations: 157.8 kB / 373.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3103, allocations: 0.9375 kB / 373.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004668/0.3108, allocations: 70.3 kB / 373.9 MB, free: 17.32 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.0008427/0.3117, allocations: 359.9 kB / 374.2 MB, free: 17.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006232/0.3123, allocations: 318.9 kB / 374.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3123, allocations: 0 / 374.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002945/0.3126, allocations: 229.7 kB / 374.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.3131, allocations: 34.14 kB / 374.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.3145, allocations: 0.9008 MB / 375.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.3147, allocations: 0.7454 MB / 376.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.454e-05/0.3148, allocations: 26.77 kB / 376.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3148, allocations: 0 / 376.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of Templates: time 0.00778/0.3226, allocations: 3.965 MB / 380.4 MB, free: 15.39 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches