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.0008525/0.0008563, allocations: 97.77 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009474/0.0009475, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001941/0.0001941, allocations: 8 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09149, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002943/0.09449, allocations: 1.913 MB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.09576, allocations: 0.8107 MB / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.687e-05/0.09587, allocations: 3.938 kB / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.0961, allocations: 51.7 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.09632, allocations: 91.5 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001607/0.09649, allocations: 63.86 kB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000276/0.09677, allocations: 255.4 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.09693, allocations: 48.53 kB / 361.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.09718, allocations: 123.5 kB / 362 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002008/0.09739, allocations: 115.5 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.328e-05/0.09743, allocations: 12 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.09758, allocations: 59.98 kB / 362.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.176e-05/0.09767, allocations: 47.81 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.336e-05/0.09775, allocations: 61.58 kB / 362.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002848/0.09804, allocations: 223.7 kB / 362.5 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.09805, allocations: 0 / 362.5 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.09806, allocations: 4 kB / 362.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.09807, allocations: 0 / 362.5 MB, free: 9.766 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008741/0.09895, allocations: 0.5548 MB / 363 MB, free: 9.156 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.099, allocations: 16.02 kB / 363.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.09916, allocations: 39.66 kB / 363.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002798/0.09944, allocations: 244.3 kB / 363.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.09948, allocations: 16 kB / 363.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.09953, allocations: 16 kB / 363.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004405/0.09997, allocations: 239.1 kB / 363.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.1, allocations: 0 / 363.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.1, allocations: 11.98 kB / 363.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1, allocations: 4 kB / 363.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004488/0.1005, allocations: 195.7 kB / 363.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009064/0.1014, allocations: 0.668 MB / 364.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005283/0.1019, allocations: 210.5 kB / 364.7 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.1022, allocations: 104.8 kB / 364.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.1022, allocations: 7.984 kB / 364.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003579/0.1026, allocations: 184.2 kB / 365 MB, free: 7.094 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.603e-06/0.1026, allocations: 0 / 365 MB, free: 7.094 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002254/0.1048, allocations: 1.211 MB / 366.2 MB, free: 5.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.1049, allocations: 55.41 kB / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.1051, allocations: 210.9 kB / 366.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.1051, allocations: 33.7 kB / 366.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.395e-05/0.1052, allocations: 128.4 kB / 366.6 MB, free: 5.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.092e-05/0.1053, allocations: 94.64 kB / 366.7 MB, free: 5.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.689e-05/0.1053, allocations: 8 kB / 366.7 MB, free: 5.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1055, allocations: 334.8 kB / 367 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.1057, allocations: 107.9 kB / 367.1 MB, free: 4.777 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002682/0.106, allocations: 147.3 kB / 367.3 MB, free: 4.621 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.1063, allocations: 134.7 kB / 367.4 MB, free: 4.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1063, allocations: 0 / 367.4 MB, free: 4.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008071/0.1071, allocations: 385.7 kB / 367.8 MB, free: 4.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.1071, allocations: 41.69 kB / 367.8 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.1071, allocations: 0 / 367.8 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001883/0.1073, allocations: 48.84 kB / 367.9 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.1076, allocations: 67.89 kB / 367.9 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/0.1093, allocations: 1.631 MB / 369.6 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.1096, allocations: 52.05 kB / 369.6 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.1096, allocations: 8 kB / 369.6 MB, free: 2.102 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: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.1098, allocations: 141.8 kB / 369.8 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.1098, allocations: 15.81 kB / 369.8 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.499e-05/0.1099, allocations: 34.5 kB / 369.8 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1099, allocations: 8 kB / 369.8 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.1099, allocations: 0 / 369.8 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1099, allocations: 0 / 369.8 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.111, allocations: 0.7078 MB / 370.5 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.111, allocations: 0 / 370.5 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002195/0.1112, allocations: 51.91 kB / 370.6 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001281/0.1114, allocations: 48.83 kB / 370.6 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.1114, allocations: 15.98 kB / 370.6 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.158/0.2695, allocations: 1.529 MB / 372.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.2695, allocations: 2.734 kB / 372.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.2705, allocations: 0.5265 MB / 372.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.475e-05/0.2706, allocations: 116.6 kB / 372.8 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.2707, allocations: 6.719 kB / 372.8 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002459/0.2709, allocations: 41.22 kB / 372.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.2711, allocations: 77.27 kB / 372.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.2711, allocations: 11.27 kB / 373 MB, free: 18.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001219/0.2713, allocations: 150.4 kB / 373.1 MB, free: 17.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2713, allocations: 0 / 373.1 MB, free: 17.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004331/0.2717, allocations: 74.88 kB / 373.2 MB, free: 17.97 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007917/0.2725, allocations: 368 kB / 373.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008104/0.2733, allocations: 454.5 kB / 374 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2734, allocations: 0 / 374 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004068/0.2738, allocations: 276.7 kB / 374.2 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/0.2742, allocations: 48.33 kB / 374.3 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.2754, allocations: 0.8123 MB / 375.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000173/0.2756, allocations: 0.7529 MB / 375.9 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.2757, allocations: 27.64 kB / 375.9 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.15e-05/0.2758, allocations: 22.23 kB / 375.9 MB, free: 16.37 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2758, allocations: 0.75 kB / 375.9 MB, free: 16.37 MB / 302.1 MB Notification: Performance of Templates: time 0.008299/0.2841, allocations: 3.936 MB / 379.8 MB, free: 16.09 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches