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.001776/0.001776, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 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.002389/0.002389, allocations: 213.9 kB / 24.48 MB, free: 3.836 MB / 14.72 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.486/1.486, allocations: 230.5 MB / 258.1 MB, free: 7.785 MB / 206.1 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 0.002186/0.002186, allocations: 67.91 kB / 379 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2399, allocations: 53.41 MB / 432.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004155/0.2441, allocations: 2.193 MB / 434.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.2457, allocations: 0.8295 MB / 435.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.2458, allocations: 0 / 435.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.2461, allocations: 51.59 kB / 435.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003412/0.2464, allocations: 111.2 kB / 435.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002637/0.2467, allocations: 87.83 kB / 435.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003866/0.2471, allocations: 291.4 kB / 435.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.2472, allocations: 43.52 kB / 436 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002667/0.2475, allocations: 131.6 kB / 436.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.2477, allocations: 131.4 kB / 436.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.701e-05/0.2478, allocations: 24 kB / 436.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.2479, allocations: 79.97 kB / 436.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.949e-05/0.248, allocations: 51.83 kB / 436.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.2482, allocations: 103.6 kB / 436.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004572/0.2486, allocations: 310.5 kB / 436.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2486, allocations: 4 kB / 436.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2486, allocations: 0 / 436.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.2486, allocations: 0 / 436.8 MB, free: 2.113 MB / 334.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.001323/0.25, allocations: 0.5296 MB / 437.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.25, allocations: 15.98 kB / 437.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.2502, allocations: 32.78 kB / 437.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004119/0.2506, allocations: 188.1 kB / 437.5 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.2506, allocations: 12.38 kB / 437.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.431e-05/0.2507, allocations: 24.38 kB / 437.6 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.2512, allocations: 235.3 kB / 437.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.2512, allocations: 3.984 kB / 437.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.2512, allocations: 7.938 kB / 437.8 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.2512, allocations: 4 kB / 437.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.2517, allocations: 171.9 kB / 438 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.2528, allocations: 0.5469 MB / 438.5 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005884/0.2534, allocations: 194.4 kB / 438.7 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.2537, allocations: 91.86 kB / 438.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.2537, allocations: 4 kB / 438.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004135/0.2541, allocations: 167.8 kB / 439 MB, free: 15.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.2541, allocations: 0 / 439 MB, free: 15.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002517/0.2566, allocations: 0.9378 MB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.2567, allocations: 55.41 kB / 440 MB, free: 14.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/0.2569, allocations: 203.1 kB / 440.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.2569, allocations: 37.64 kB / 440.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.2571, allocations: 132.5 kB / 440.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.791e-05/0.2571, allocations: 99.2 kB / 440.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.2572, allocations: 57.7 kB / 440.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.2574, allocations: 330.8 kB / 440.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003136/0.2577, allocations: 137.6 kB / 441 MB, free: 13.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003336/0.2581, allocations: 170.1 kB / 441.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005415/0.2586, allocations: 242 kB / 441.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2586, allocations: 0 / 441.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008946/0.2595, allocations: 415.4 kB / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.244e-05/0.2595, allocations: 29.7 kB / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.2596, allocations: 4 kB / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002239/0.2598, allocations: 52.83 kB / 441.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.26, allocations: 51.91 kB / 441.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.2622, allocations: 1.676 MB / 443.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002716/0.2624, allocations: 27.97 kB / 443.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.2625, allocations: 12 kB / 443.6 MB, free: 10.88 MB / 350.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.0001929/0.2627, allocations: 154.6 kB / 443.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.045e-05/0.2627, allocations: 23.86 kB / 443.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.067e-05/0.2628, allocations: 26.66 kB / 443.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.2628, allocations: 7.984 kB / 443.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.2628, allocations: 0 / 443.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.2628, allocations: 0 / 443.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.264, allocations: 0.6006 MB / 444.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.264, allocations: 4 kB / 444.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002314/0.2642, allocations: 40.03 kB / 444.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001647/0.2644, allocations: 52.83 kB / 444.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.2644, allocations: 4 kB / 444.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001788/0.2662, allocations: 1.511 MB / 446 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.2662, allocations: 3.984 kB / 446 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.2673, allocations: 0.5129 MB / 446.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.2674, allocations: 35.92 kB / 446.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.2675, allocations: 4 kB / 446.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002612/0.2677, allocations: 36.02 kB / 446.6 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/0.2679, allocations: 75.86 kB / 446.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.2679, allocations: 8 kB / 446.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.2681, allocations: 147.6 kB / 446.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2681, allocations: 0 / 446.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004423/0.2686, allocations: 75.94 kB / 446.9 MB, free: 7.387 MB / 350.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.001519/0.2701, allocations: 388.5 kB / 447.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.2711, allocations: 467.5 kB / 447.8 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2711, allocations: 0 / 447.8 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004836/0.2716, allocations: 258.4 kB / 448 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00044/0.272, allocations: 47.97 kB / 448.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.2735, allocations: 0.6965 MB / 448.8 MB, free: 5.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.2736, allocations: 138.2 kB / 448.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.258e-05/0.2737, allocations: 31.42 kB / 448.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2737, allocations: 0 / 448.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of Templates: time 0.008169/0.2819, allocations: 4.474 MB / 453.4 MB, free: 0.9492 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.865803173277527]