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.001434/0.001433, allocations: 107.4 kB / 17.98 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001759/0.001759, allocations: 209.8 kB / 18.92 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 247.1 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 59.94 kB / 307.1 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1023, allocations: 50.53 MB / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004629/0.107, allocations: 2.326 MB / 360 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.1088, allocations: 0.8608 MB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002589/0.1091, allocations: 7.938 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003461/0.1095, allocations: 27.78 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003981/0.1099, allocations: 99.5 kB / 361 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.1102, allocations: 71.86 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00045/0.1107, allocations: 299.4 kB / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.1109, allocations: 64.25 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000329/0.1112, allocations: 119.6 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.1115, allocations: 135.4 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.699e-05/0.1116, allocations: 28 kB / 361.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.1118, allocations: 83.95 kB / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.247e-05/0.1119, allocations: 51.83 kB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.112, allocations: 119.4 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003649/0.1124, allocations: 235.8 kB / 362.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1124, allocations: 0 / 362.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1124, allocations: 0 / 362.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.1124, allocations: 0 / 362.1 MB, free: 9.883 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.001183/0.1136, allocations: 0.5976 MB / 362.7 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.1137, allocations: 8.031 kB / 362.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002074/0.1139, allocations: 36.64 kB / 362.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.1143, allocations: 249.5 kB / 363 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.1143, allocations: 20.36 kB / 363 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/0.1144, allocations: 16.38 kB / 363.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005099/0.1149, allocations: 231.5 kB / 363.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.1149, allocations: 0 / 363.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.115, allocations: 4 kB / 363.3 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.115, allocations: 4 kB / 363.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004869/0.1155, allocations: 191.6 kB / 363.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.1165, allocations: 0.6487 MB / 364.1 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005847/0.1171, allocations: 206.4 kB / 364.3 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/0.1174, allocations: 104.7 kB / 364.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.1174, allocations: 4 kB / 364.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004748/0.1179, allocations: 160.3 kB / 364.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.214e-06/0.1179, allocations: 0 / 364.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002545/0.1205, allocations: 1.164 MB / 365.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.1205, allocations: 55.41 kB / 365.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.1208, allocations: 203.1 kB / 366 MB, free: 5.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.599e-05/0.1208, allocations: 33.7 kB / 366 MB, free: 5.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.859e-05/0.1209, allocations: 132.4 kB / 366.2 MB, free: 5.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.952e-05/0.121, allocations: 90.73 kB / 366.3 MB, free: 5.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.1211, allocations: 61.62 kB / 366.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1213, allocations: 338.8 kB / 366.7 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.1216, allocations: 95.94 kB / 366.7 MB, free: 4.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/0.1219, allocations: 144.4 kB / 366.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004971/0.1224, allocations: 242 kB / 367.1 MB, free: 4.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1224, allocations: 0 / 367.1 MB, free: 4.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008228/0.1232, allocations: 381.6 kB / 367.5 MB, free: 4.137 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.1233, allocations: 36.83 kB / 367.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.1233, allocations: 0 / 367.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002763/0.1235, allocations: 60.77 kB / 367.6 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002103/0.1238, allocations: 48.02 kB / 367.6 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/0.1259, allocations: 1.812 MB / 369.5 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000267/0.1261, allocations: 32 kB / 369.5 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.33e-05/0.1262, allocations: 15.98 kB / 369.5 MB, free: 1.988 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.0001595/0.1264, allocations: 145.7 kB / 369.6 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.56e-05/0.1264, allocations: 19.81 kB / 369.7 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.688e-05/0.1265, allocations: 34.55 kB / 369.7 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1265, allocations: 4 kB / 369.7 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1265, allocations: 3.938 kB / 369.7 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.1265, allocations: 0 / 369.7 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.1277, allocations: 0.6922 MB / 370.4 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1277, allocations: 3.938 kB / 370.4 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002805/0.128, allocations: 35.97 kB / 370.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001468/0.1281, allocations: 56.83 kB / 370.5 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.1282, allocations: 8 kB / 370.5 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1525/0.2807, allocations: 1.641 MB / 372.1 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.2807, allocations: 1.375 kB / 372.1 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.2819, allocations: 0.5026 MB / 372.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.2821, allocations: 115.7 kB / 372.8 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.099e-05/0.2821, allocations: 5.594 kB / 372.8 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.2824, allocations: 35.95 kB / 372.8 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.2826, allocations: 71.39 kB / 372.9 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.2826, allocations: 9.281 kB / 372.9 MB, free: 18.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001395/0.2828, allocations: 144.9 kB / 373 MB, free: 18.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.92e-07/0.2828, allocations: 4.781 kB / 373 MB, free: 18.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004548/0.2832, allocations: 76.02 kB / 373.1 MB, free: 18.83 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.0008224/0.2841, allocations: 362.4 kB / 373.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009782/0.2851, allocations: 462.2 kB / 373.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2851, allocations: 0 / 373.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004579/0.2855, allocations: 268.5 kB / 374.2 MB, free: 18.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/0.286, allocations: 51.91 kB / 374.2 MB, free: 18.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.2873, allocations: 0.7762 MB / 375 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/0.2875, allocations: 0.747 MB / 375.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.997e-05/0.2876, allocations: 33.91 kB / 375.8 MB, free: 17.24 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.2876, allocations: 0 / 375.8 MB, free: 17.24 MB / 302.1 MB Notification: Performance of Templates: time 0.008162/0.2958, allocations: 4.344 MB / 380.1 MB, free: 16.86 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/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