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.001373/0.001373, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001401/0.001401, allocations: 160.9 kB / 24.99 MB, free: 8.805 MB / 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 0.9976/0.9976, allocations: 177 MB / 205.2 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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.044e-06/2.044e-06, allocations: 0 / 273 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.891e-05/3.095e-05, allocations: 2.312 kB / 273 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003526/0.003557, allocations: 2.316 MB / 275.3 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.004683, allocations: 0.8412 MB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.00479, allocations: 3.938 kB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002304/0.00502, allocations: 55.5 kB / 276.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002261/0.005246, allocations: 119.1 kB / 276.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001914/0.005437, allocations: 83.77 kB / 276.4 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000246/0.005683, allocations: 303.3 kB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.005799, allocations: 36.56 kB / 276.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002254/0.006025, allocations: 191.5 kB / 276.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.006168, allocations: 103.7 kB / 277 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.044e-05/0.006199, allocations: 24 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.006311, allocations: 75.92 kB / 277.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.477e-05/0.006376, allocations: 59.8 kB / 277.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.304e-05/0.006449, allocations: 87.77 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.006746, allocations: 251.1 kB / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.006749, allocations: 0 / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.00675, allocations: 0 / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.006755, allocations: 0 / 277.5 MB, free: 13.25 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.0007396/0.007494, allocations: 0.6063 MB / 278.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.007527, allocations: 11.98 kB / 278.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.00766, allocations: 44.78 kB / 278.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.007891, allocations: 218.2 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.007914, allocations: 16.38 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.396e-05/0.007948, allocations: 20.38 kB / 278.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.008202, allocations: 193.4 kB / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.008213, allocations: 192 / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.008235, allocations: 8.375 kB / 278.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.008244, allocations: 7.938 kB / 278.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.008396, allocations: 83.92 kB / 278.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006047/0.009, allocations: 0.6192 MB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.009259, allocations: 130.9 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.018e-05/0.009339, allocations: 51.67 kB / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.009357, allocations: 8 kB / 279.5 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.009519, allocations: 128.8 kB / 279.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.342e-06/0.009521, allocations: 0 / 279.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.00107/0.01059, allocations: 0.735 MB / 280.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.091e-05/0.01062, allocations: 59.39 kB / 280.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.01077, allocations: 254.6 kB / 280.7 MB, free: 9.828 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.01079, allocations: 33.7 kB / 280.7 MB, free: 9.789 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.814e-05/0.01085, allocations: 175.3 kB / 280.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.106e-05/0.01091, allocations: 91.22 kB / 281 MB, free: 9.523 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.839e-05/0.01097, allocations: 71.3 kB / 281 MB, free: 9.445 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.01108, allocations: 0.504 MB / 281.5 MB, free: 8.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.01118, allocations: 77.42 kB / 281.6 MB, free: 8.848 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.01129, allocations: 132.4 kB / 281.7 MB, free: 8.695 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.01146, allocations: 173.4 kB / 281.9 MB, free: 8.504 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.01147, allocations: 0 / 281.9 MB, free: 8.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003553/0.01182, allocations: 326.2 kB / 282.2 MB, free: 8.164 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.01185, allocations: 36.52 kB / 282.3 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.01186, allocations: 7.984 kB / 282.3 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001365/0.01199, allocations: 43.72 kB / 282.3 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.0121, allocations: 51.91 kB / 282.4 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.01324, allocations: 2.145 MB / 284.5 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.01335, allocations: 23.98 kB / 284.5 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.01337, allocations: 20.02 kB / 284.5 MB, free: 5.711 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 9.5e-05/0.01346, allocations: 176.5 kB / 284.7 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.54e-05/0.0135, allocations: 31.86 kB / 284.8 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.159e-05/0.01353, allocations: 26.66 kB / 284.8 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.01353, allocations: 7.984 kB / 284.8 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-06/0.01353, allocations: 0 / 284.8 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.01354, allocations: 0 / 284.8 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000537/0.01408, allocations: 0.556 MB / 285.3 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.01408, allocations: 3.938 kB / 285.3 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.0142, allocations: 47.91 kB / 285.4 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.698e-05/0.01428, allocations: 43.66 kB / 285.4 MB, free: 4.762 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.0143, allocations: 4 kB / 285.4 MB, free: 4.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008855/0.01518, allocations: 1.924 MB / 287.4 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01519, allocations: 4.031 kB / 287.4 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004035/0.01559, allocations: 436.9 kB / 287.8 MB, free: 2.258 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.386e-05/0.01564, allocations: 35.88 kB / 287.8 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.01567, allocations: 7.984 kB / 287.8 MB, free: 2.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.01577, allocations: 19.98 kB / 287.9 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.01588, allocations: 71.86 kB / 287.9 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.01589, allocations: 11.94 kB / 287.9 MB, free: 2.113 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.256e-05/0.01597, allocations: 175.1 kB / 288.1 MB, free: 1.941 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01597, allocations: 4 kB / 288.1 MB, free: 1.938 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003461/0.01632, allocations: 75.98 kB / 288.2 MB, free: 1.863 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.0006794/0.017, allocations: 345.9 kB / 288.5 MB, free: 1.613 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000447/0.01745, allocations: 439.9 kB / 289 MB, free: 1.145 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.01745, allocations: 128 / 289 MB, free: 1.145 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.01766, allocations: 293.2 kB / 289.2 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.01792, allocations: 63.97 kB / 289.3 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008884/0.01881, allocations: 0.5576 MB / 289.9 MB, free: 188 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.381e-05/0.01887, allocations: 96.25 kB / 290 MB, free: 72 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.987e-05/0.01894, allocations: 21.94 kB / 290 MB, free: 52 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.138e-05/0.01899, allocations: 24.5 kB / 290 MB, free: 28 kB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01899, allocations: 0 / 290 MB, free: 28 kB / 266.7 MB Notification: Performance of Templates: time 0.005979/0.02497, allocations: 4.588 MB / 294.6 MB, free: 11.49 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0007573219481856]