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.000774/0.000774, allocations: 95.62 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009051/0.0009052, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.8 MB / 246.9 MB, free: 11.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002182/0.0002182, allocations: 8 kB / 307.8 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1048, allocations: 51.54 MB / 359.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002892/0.1077, allocations: 1.967 MB / 361.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.1092, allocations: 0.8532 MB / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.1094, allocations: 4 kB / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002875/0.1097, allocations: 39.77 kB / 362.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000268/0.1099, allocations: 91.44 kB / 362.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.1102, allocations: 79.86 kB / 362.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003298/0.1105, allocations: 267.4 kB / 362.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.1107, allocations: 64.25 kB / 362.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.111, allocations: 115.5 kB / 362.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.1112, allocations: 123.5 kB / 362.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.429e-05/0.1112, allocations: 12 kB / 362.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.1114, allocations: 63.98 kB / 363 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.31e-05/0.1115, allocations: 47.75 kB / 363 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001395/0.1116, allocations: 133.1 kB / 363.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003675/0.112, allocations: 291.3 kB / 363.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.112, allocations: 7.938 kB / 363.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.112, allocations: 0 / 363.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.112, allocations: 0 / 363.5 MB, free: 9.09 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.001129/0.1132, allocations: 0.555 MB / 364 MB, free: 8.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.1132, allocations: 11.97 kB / 364 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/0.1134, allocations: 44.64 kB / 364.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.1138, allocations: 249.5 kB / 364.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.888e-05/0.1139, allocations: 20.36 kB / 364.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.506e-05/0.1139, allocations: 20.38 kB / 364.3 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005139/0.1145, allocations: 235.5 kB / 364.6 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.1145, allocations: 11.91 kB / 364.6 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.1145, allocations: 4 kB / 364.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.1145, allocations: 4 kB / 364.6 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005368/0.1151, allocations: 199.6 kB / 364.8 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.1162, allocations: 0.6525 MB / 365.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00062/0.1168, allocations: 218.5 kB / 365.7 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.1171, allocations: 108.7 kB / 365.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.1172, allocations: 11.98 kB / 365.8 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000429/0.1176, allocations: 172.3 kB / 365.9 MB, free: 6.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.863e-06/0.1176, allocations: 0 / 365.9 MB, free: 6.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002763/0.1204, allocations: 1.231 MB / 367.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.1205, allocations: 51.41 kB / 367.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.1207, allocations: 206.5 kB / 367.4 MB, free: 4.797 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.1208, allocations: 33.64 kB / 367.5 MB, free: 4.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.1209, allocations: 136.3 kB / 367.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.671e-05/0.121, allocations: 90.72 kB / 367.7 MB, free: 4.531 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.808e-05/0.121, allocations: 33.7 kB / 367.7 MB, free: 4.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.1212, allocations: 330.8 kB / 368 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/0.1215, allocations: 107.9 kB / 368.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/0.1218, allocations: 149.2 kB / 368.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005522/0.1224, allocations: 258 kB / 368.5 MB, free: 3.629 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1224, allocations: 4 kB / 368.5 MB, free: 3.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008885/0.1233, allocations: 389.6 kB / 368.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/0.1233, allocations: 37.69 kB / 369 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1234, allocations: 0 / 369 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002126/0.1236, allocations: 56.78 kB / 369 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.1238, allocations: 55.89 kB / 369.1 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.1258, allocations: 1.639 MB / 370.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003001/0.1261, allocations: 48.02 kB / 370.8 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.1262, allocations: 12 kB / 370.8 MB, free: 1.238 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 (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.0001819/0.1264, allocations: 137.7 kB / 370.9 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.477e-05/0.1264, allocations: 27.72 kB / 370.9 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.903e-05/0.1265, allocations: 30.55 kB / 371 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1265, allocations: 4 kB / 371 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1265, allocations: 0 / 371 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1265, allocations: 4 kB / 371 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.1278, allocations: 0.7078 MB / 371.7 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1279, allocations: 64 / 371.7 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002423/0.1281, allocations: 51.91 kB / 371.7 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001603/0.1283, allocations: 52.83 kB / 371.8 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.1283, allocations: 7.984 kB / 371.8 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1914/0.3197, allocations: 1.533 MB / 373.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3198, allocations: 0.5 kB / 373.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.3209, allocations: 0.5259 MB / 373.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.321, allocations: 120.9 kB / 374 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/0.3211, allocations: 6.359 kB / 374 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.3213, allocations: 46.42 kB / 374 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.3216, allocations: 74.45 kB / 374.1 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.3216, allocations: 10.19 kB / 374.1 MB, free: 17.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001392/0.3217, allocations: 145 kB / 374.2 MB, free: 17.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.11e-07/0.3217, allocations: 0.5 kB / 374.2 MB, free: 17.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004645/0.3222, allocations: 81.53 kB / 374.3 MB, free: 17.65 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 (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.001307/0.3235, allocations: 363 kB / 374.7 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009585/0.3245, allocations: 456.9 kB / 375.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3245, allocations: 0 / 375.1 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000502/0.325, allocations: 274.1 kB / 375.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004527/0.3255, allocations: 57.41 kB / 375.4 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.3269, allocations: 0.8187 MB / 376.3 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.3271, allocations: 0.7486 MB / 377 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.3272, allocations: 25.86 kB / 377 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.798e-05/0.3273, allocations: 26.44 kB / 377.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3273, allocations: 0 / 377.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of Templates: time 0.009728/0.337, allocations: 4.055 MB / 381.1 MB, free: 15.76 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.1.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