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.001798/0.001798, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002076/0.002077, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.8 kB / 307 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1106, allocations: 50.55 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00402/0.1147, allocations: 2.272 MB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.1161, allocations: 0.8685 MB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.1163, allocations: 4 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.1165, allocations: 51.58 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002542/0.1168, allocations: 103.2 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.117, allocations: 91.83 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003507/0.1174, allocations: 295.3 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.1176, allocations: 60.27 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/0.1178, allocations: 127.5 kB / 361.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.118, allocations: 139.4 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.5e-05/0.1181, allocations: 24 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.1183, allocations: 83.97 kB / 361.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.736e-05/0.1184, allocations: 55.83 kB / 361.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.1185, allocations: 123.4 kB / 361.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000435/0.1189, allocations: 307.3 kB / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1189, allocations: 0 / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.119, allocations: 0 / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.119, allocations: 0 / 362.1 MB, free: 9.469 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.001119/0.1201, allocations: 0.5938 MB / 362.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.1201, allocations: 8.031 kB / 362.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.1203, allocations: 36.58 kB / 362.7 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.1206, allocations: 253.5 kB / 363 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.1207, allocations: 12.38 kB / 363 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.818e-05/0.1207, allocations: 24.38 kB / 363 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000479/0.1212, allocations: 223.5 kB / 363.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1212, allocations: 8 kB / 363.3 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.1213, allocations: 4 kB / 363.3 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1213, allocations: 4 kB / 363.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005074/0.1218, allocations: 191.6 kB / 363.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.1228, allocations: 0.6409 MB / 364.1 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006339/0.1235, allocations: 202.4 kB / 364.3 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.1238, allocations: 112.7 kB / 364.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.1238, allocations: 4 kB / 364.4 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004318/0.1242, allocations: 164.3 kB / 364.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.724e-06/0.1242, allocations: 0 / 364.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002593/0.1268, allocations: 1.174 MB / 365.7 MB, free: 5.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.1269, allocations: 55.41 kB / 365.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.1271, allocations: 202.5 kB / 366 MB, free: 5.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.1272, allocations: 33.7 kB / 366 MB, free: 5.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.1273, allocations: 132.4 kB / 366.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.025e-05/0.1274, allocations: 86.75 kB / 366.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.1275, allocations: 57.7 kB / 366.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1276, allocations: 334.8 kB / 366.6 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.1279, allocations: 95.94 kB / 366.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.1282, allocations: 145.2 kB / 366.9 MB, free: 4.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005292/0.1288, allocations: 242 kB / 367.1 MB, free: 4.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1288, allocations: 0 / 367.1 MB, free: 4.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008347/0.1296, allocations: 377.6 kB / 367.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.692e-05/0.1297, allocations: 40.67 kB / 367.5 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1297, allocations: 0 / 367.5 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002144/0.1299, allocations: 64.75 kB / 367.6 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002178/0.1302, allocations: 47.91 kB / 367.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/0.1321, allocations: 1.802 MB / 369.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.1324, allocations: 35.98 kB / 369.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.1324, allocations: 8 kB / 369.5 MB, free: 1.586 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.0001555/0.1326, allocations: 145.8 kB / 369.6 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.477e-05/0.1326, allocations: 19.81 kB / 369.6 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.726e-05/0.1327, allocations: 34.55 kB / 369.6 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1327, allocations: 0 / 369.6 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1327, allocations: 7.938 kB / 369.7 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1327, allocations: 0 / 369.7 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.1339, allocations: 0.6864 MB / 370.3 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1339, allocations: 3.938 kB / 370.3 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.1342, allocations: 39.97 kB / 370.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000142/0.1343, allocations: 56.81 kB / 370.4 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.1344, allocations: 12.05 kB / 370.5 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1601/0.2945, allocations: 1.643 MB / 372.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2945, allocations: 0.5938 kB / 372.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.2956, allocations: 0.5054 MB / 372.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.2957, allocations: 122.7 kB / 372.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.2958, allocations: 6.688 kB / 372.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.296, allocations: 31.66 kB / 372.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.2962, allocations: 72.17 kB / 372.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.2962, allocations: 7.219 kB / 372.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001403/0.2964, allocations: 150.3 kB / 373 MB, free: 18.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2964, allocations: 3.969 kB / 373 MB, free: 18.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004326/0.2968, allocations: 74.77 kB / 373.1 MB, free: 18.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.001254/0.2981, allocations: 365.6 kB / 373.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009167/0.299, allocations: 457.6 kB / 373.9 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.299, allocations: 3.781 kB / 373.9 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000407/0.2994, allocations: 267.4 kB / 374.1 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.2999, allocations: 49.2 kB / 374.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.301, allocations: 0.6694 MB / 374.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.3012, allocations: 0.7554 MB / 375.6 MB, free: 17.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.3014, allocations: 31.28 kB / 375.6 MB, free: 17.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.59e-05/0.3014, allocations: 22.97 kB / 375.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3014, allocations: 0 / 375.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of Templates: time 0.009423/0.3109, allocations: 4.537 MB / 380.2 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/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