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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001866/0.001866, allocations: 92.27 kB / 20.96 MB, free: 3.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002152/0.002152, allocations: 156.9 kB / 24.26 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.563/1.563, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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=2000,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=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.603e-05/3.812e-05, allocations: 2.312 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.006487/0.006525, allocations: 2.206 MB / 274.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002729/0.009255, allocations: 0.8255 MB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/0.009457, allocations: 7.938 kB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003829/0.00984, allocations: 39.59 kB / 275.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005497/0.01039, allocations: 115.1 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.01083, allocations: 91.8 kB / 275.5 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006359/0.01146, allocations: 303.3 kB / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.01166, allocations: 40.48 kB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005187/0.01218, allocations: 175.6 kB / 276 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003455/0.01253, allocations: 119.7 kB / 276.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.871e-05/0.0126, allocations: 20 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002706/0.01287, allocations: 79.91 kB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.01299, allocations: 51.83 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001923/0.01319, allocations: 83.75 kB / 276.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007562/0.01394, allocations: 335 kB / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.01395, allocations: 0 / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.01395, allocations: 0 / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.01396, allocations: 0 / 276.6 MB, free: 13.34 MB / 266.7 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.001986/0.01594, allocations: 0.5141 MB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.016, allocations: 11.98 kB / 277.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003783/0.01637, allocations: 56.73 kB / 277.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006476/0.01702, allocations: 202.7 kB / 277.4 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.719e-05/0.01707, allocations: 16.38 kB / 277.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.182e-05/0.01716, allocations: 20.36 kB / 277.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008569/0.01802, allocations: 219.8 kB / 277.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.01804, allocations: 192 / 277.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.388e-05/0.01809, allocations: 8.375 kB / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.01811, allocations: 7.938 kB / 277.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009296/0.01904, allocations: 187.8 kB / 277.9 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.02072, allocations: 0.5275 MB / 278.4 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.02179, allocations: 190.4 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005093/0.0223, allocations: 92.8 kB / 278.7 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.294e-05/0.02233, allocations: 8 kB / 278.7 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000707/0.02304, allocations: 163.2 kB / 278.8 MB, free: 11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 7.774e-06/0.02304, allocations: 3.984 kB / 278.8 MB, free: 11 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.004495/0.02754, allocations: 0.946 MB / 279.8 MB, free: 9.996 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.177e-05/0.02762, allocations: 59.39 kB / 279.8 MB, free: 9.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003753/0.028, allocations: 198.6 kB / 280 MB, free: 9.719 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.02805, allocations: 33.7 kB / 280.1 MB, free: 9.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.02821, allocations: 140.5 kB / 280.2 MB, free: 9.539 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.02835, allocations: 95.27 kB / 280.3 MB, free: 9.445 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.02852, allocations: 57.69 kB / 280.4 MB, free: 9.383 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002499/0.02877, allocations: 330.8 kB / 280.7 MB, free: 9.051 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000516/0.02929, allocations: 129.4 kB / 280.8 MB, free: 8.918 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005587/0.02985, allocations: 166.3 kB / 281 MB, free: 8.738 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.03087, allocations: 242.1 kB / 281.2 MB, free: 8.484 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.03088, allocations: 0 / 281.2 MB, free: 8.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001631/0.03251, allocations: 423.3 kB / 281.6 MB, free: 8.051 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.762e-05/0.03257, allocations: 37.64 kB / 281.7 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.03258, allocations: 0 / 281.7 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003935/0.03298, allocations: 60.89 kB / 281.7 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003949/0.03337, allocations: 51.91 kB / 281.8 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003403/0.03678, allocations: 1.668 MB / 283.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004879/0.03726, allocations: 35.94 kB / 283.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.206e-05/0.03732, allocations: 15.98 kB / 283.5 MB, free: 6.078 MB / 266.7 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.0002858/0.0376, allocations: 145.8 kB / 283.6 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.03773, allocations: 31.86 kB / 283.7 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.03783, allocations: 30.64 kB / 283.7 MB, free: 5.863 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.03784, allocations: 4 kB / 283.7 MB, free: 5.859 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.03785, allocations: 0 / 283.7 MB, free: 5.859 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.03785, allocations: 4 kB / 283.7 MB, free: 5.855 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.0402, allocations: 0.5929 MB / 284.3 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.04021, allocations: 3.938 kB / 284.3 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004672/0.04068, allocations: 43.97 kB / 284.3 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002787/0.04095, allocations: 52.97 kB / 284.4 MB, free: 5.117 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.04099, allocations: 12.06 kB / 284.4 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00299/0.04398, allocations: 1.515 MB / 285.9 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.523e-06/0.04399, allocations: 3.938 kB / 285.9 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.04604, allocations: 0.5209 MB / 286.4 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.04622, allocations: 39.88 kB / 286.5 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.767e-05/0.04628, allocations: 11.98 kB / 286.5 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004765/0.04676, allocations: 27.97 kB / 286.5 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003051/0.04707, allocations: 75.86 kB / 286.6 MB, free: 2.793 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/0.0471, allocations: 4 kB / 286.6 MB, free: 2.789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002721/0.04737, allocations: 155.6 kB / 286.8 MB, free: 2.637 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.04737, allocations: 0 / 286.8 MB, free: 2.637 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007634/0.04813, allocations: 75.98 kB / 286.8 MB, free: 2.562 MB / 266.7 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.002451/0.05059, allocations: 391.6 kB / 287.2 MB, free: 2.297 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001522/0.05211, allocations: 455.4 kB / 287.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.05211, allocations: 0 / 287.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007696/0.05288, allocations: 258.4 kB / 287.9 MB, free: 1.555 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007973/0.05368, allocations: 67.14 kB / 288 MB, free: 1.492 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.05585, allocations: 0.5777 MB / 288.5 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.05609, allocations: 138.1 kB / 288.7 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000207/0.0563, allocations: 33.92 kB / 288.7 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.05644, allocations: 28.48 kB / 288.7 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.05644, allocations: 0 / 288.7 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of Templates: time 0.01681/0.07324, allocations: 4.549 MB / 293.3 MB, free: 12.17 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.68567721999716]