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.001374/0.001375, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 60.44 kB / 306.3 MB, free: 1.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.09674, allocations: 50.53 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003482/0.1003, allocations: 2.376 MB / 359.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.1016, allocations: 0.853 MB / 360 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.537e-05/0.1017, allocations: 4 kB / 360 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002456/0.1019, allocations: 43.69 kB / 360.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.1022, allocations: 87.52 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001609/0.1024, allocations: 67.92 kB / 360.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002771/0.1026, allocations: 267.3 kB / 360.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.1028, allocations: 68.19 kB / 360.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.103, allocations: 111.5 kB / 360.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.1032, allocations: 127.5 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.597e-05/0.1033, allocations: 12 kB / 360.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.1034, allocations: 63.98 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.245e-05/0.1035, allocations: 47.81 kB / 360.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.1036, allocations: 107.4 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003264/0.104, allocations: 307.2 kB / 361.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.104, allocations: 0 / 361.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.104, allocations: 0 / 361.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.104, allocations: 0 / 361.3 MB, free: 9.996 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.0008369/0.1048, allocations: 0.5264 MB / 361.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.1049, allocations: 12.03 kB / 361.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001717/0.105, allocations: 32.64 kB / 361.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.1053, allocations: 255.8 kB / 362.1 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.1054, allocations: 16.75 kB / 362.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.934e-05/0.1054, allocations: 24.31 kB / 362.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.1058, allocations: 218.9 kB / 362.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.1058, allocations: 0 / 362.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.1059, allocations: 8 kB / 362.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.1059, allocations: 4 kB / 362.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003437/0.1062, allocations: 159 kB / 362.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.1073, allocations: 0.7662 MB / 363.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003787/0.1077, allocations: 157.3 kB / 363.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.1078, allocations: 72.83 kB / 363.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.1079, allocations: 3.938 kB / 363.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.1079, allocations: 38.56 kB / 363.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.262e-06/0.1079, allocations: 0 / 363.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001903/0.1098, allocations: 0.9848 MB / 364.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.1099, allocations: 55.41 kB / 364.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002404/0.1101, allocations: 218.8 kB / 364.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.1102, allocations: 33.64 kB / 364.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.924e-05/0.1102, allocations: 140.2 kB / 365 MB, free: 5.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.762e-05/0.1103, allocations: 74.98 kB / 365.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.001e-05/0.1104, allocations: 53.61 kB / 365.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1105, allocations: 330.8 kB / 365.4 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.1107, allocations: 71.97 kB / 365.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.1109, allocations: 111.4 kB / 365.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.1112, allocations: 157 kB / 365.8 MB, free: 5.148 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.1112, allocations: 0 / 365.8 MB, free: 5.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004793/0.1117, allocations: 266.1 kB / 366 MB, free: 4.879 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1117, allocations: 8 kB / 366 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.1117, allocations: 0 / 366 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002016/0.1119, allocations: 56.83 kB / 366.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.1121, allocations: 39.91 kB / 366.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.1139, allocations: 1.647 MB / 367.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.1141, allocations: 19.98 kB / 367.8 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.1141, allocations: 11.98 kB / 367.8 MB, free: 2.957 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.0001672/0.1143, allocations: 141.7 kB / 368 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.621e-05/0.1143, allocations: 19.72 kB / 368 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.899e-05/0.1144, allocations: 21.88 kB / 368 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1144, allocations: 7.984 kB / 368 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1144, allocations: 7.938 kB / 368 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1144, allocations: 0 / 368 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009094/0.1153, allocations: 0.6089 MB / 368.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1154, allocations: 0 / 368.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.1155, allocations: 32.05 kB / 368.7 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001647/0.1157, allocations: 60.81 kB / 368.7 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.1157, allocations: 11.98 kB / 368.7 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/0.1174, allocations: 1.534 MB / 370.3 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1174, allocations: 4.031 kB / 370.3 MB, free: 316 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1577/0.2751, allocations: 431.1 kB / 370.7 MB, free: 20.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001723/0.2754, allocations: 110 kB / 370.8 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.811e-05/0.2754, allocations: 6.844 kB / 370.8 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.2757, allocations: 17.09 kB / 370.8 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.2759, allocations: 68.92 kB / 370.9 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.2759, allocations: 6.281 kB / 370.9 MB, free: 20.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.2761, allocations: 160.6 kB / 371 MB, free: 20.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.2761, allocations: 0 / 371 MB, free: 20.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000512/0.2766, allocations: 72.23 kB / 371.1 MB, free: 20.34 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.0008701/0.2775, allocations: 362.6 kB / 371.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006743/0.2782, allocations: 308.1 kB / 371.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2782, allocations: 0 / 371.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000319/0.2786, allocations: 228.9 kB / 372 MB, free: 19.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000419/0.279, allocations: 43.81 kB / 372 MB, free: 19.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.2803, allocations: 0.7635 MB / 372.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.2806, allocations: 0.7502 MB / 373.6 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.2807, allocations: 31.12 kB / 373.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.22e-05/0.2808, allocations: 20.73 kB / 373.6 MB, free: 18.85 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2808, allocations: 0 / 373.6 MB, free: 18.85 MB / 302.1 MB Notification: Performance of Templates: time 0.008203/0.289, allocations: 3.591 MB / 377.2 MB, free: 18.59 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/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