Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00195/0.00195, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002297/0.002297, allocations: 211.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.578/1.578, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 51.91 kB / 378.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2329, allocations: 53.37 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003868/0.2368, allocations: 2.186 MB / 433.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.2384, allocations: 0.8257 MB / 434.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.2385, allocations: 0 / 434.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000247/0.2387, allocations: 59.5 kB / 434.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002924/0.239, allocations: 107.2 kB / 434.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.2392, allocations: 95.83 kB / 434.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.2396, allocations: 287.4 kB / 435.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.2397, allocations: 44.55 kB / 435.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.24, allocations: 135.5 kB / 435.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.2402, allocations: 139.4 kB / 435.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.824e-05/0.2403, allocations: 24 kB / 435.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001562/0.2404, allocations: 75.97 kB / 435.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.096e-05/0.2405, allocations: 55.83 kB / 435.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.2406, allocations: 95.58 kB / 435.7 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004275/0.2411, allocations: 321 kB / 436 MB, free: 2.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2411, allocations: 0 / 436 MB, free: 2.281 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.2411, allocations: 8 kB / 436 MB, free: 2.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.2411, allocations: 0 / 436 MB, free: 2.273 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.001072/0.2421, allocations: 0.518 MB / 436.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2422, allocations: 12.03 kB / 436.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.2424, allocations: 32.78 kB / 436.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003749/0.2427, allocations: 195.8 kB / 436.7 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.2428, allocations: 12.38 kB / 436.8 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.164e-05/0.2428, allocations: 24.36 kB / 436.8 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004943/0.2433, allocations: 235.2 kB / 437 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.2433, allocations: 4 kB / 437 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.2433, allocations: 8 kB / 437 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.2434, allocations: 4 kB / 437 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004983/0.2439, allocations: 179.9 kB / 437.2 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009912/0.2448, allocations: 0.543 MB / 437.7 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006419/0.2455, allocations: 186.5 kB / 437.9 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.2457, allocations: 88.81 kB / 438 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.2458, allocations: 7.984 kB / 438 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003863/0.2462, allocations: 167.2 kB / 438.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.683e-06/0.2462, allocations: 0 / 438.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002437/0.2486, allocations: 0.9388 MB / 439.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.2486, allocations: 59.39 kB / 439.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002387/0.2489, allocations: 203.1 kB / 439.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.605e-05/0.2489, allocations: 33.7 kB / 439.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.249, allocations: 132.5 kB / 439.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.131e-05/0.2491, allocations: 103.2 kB / 439.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.2492, allocations: 61.69 kB / 439.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.2494, allocations: 334.8 kB / 440 MB, free: 14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.2497, allocations: 121.7 kB / 440.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000321/0.25, allocations: 174 kB / 440.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005137/0.2505, allocations: 242.1 kB / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2505, allocations: 0 / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008507/0.2514, allocations: 411.4 kB / 441 MB, free: 13.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.381e-05/0.2514, allocations: 29.7 kB / 441 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.2514, allocations: 3.938 kB / 441 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000227/0.2517, allocations: 64.83 kB / 441.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002106/0.2519, allocations: 43.97 kB / 441.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001931/0.2538, allocations: 1.682 MB / 442.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002574/0.2541, allocations: 36.02 kB / 442.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.2541, allocations: 15.94 kB / 442.8 MB, free: 11.03 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.0001648/0.2543, allocations: 144.9 kB / 443 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.562e-05/0.2543, allocations: 23.86 kB / 443 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.727e-05/0.2544, allocations: 30.64 kB / 443 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2544, allocations: 8.031 kB / 443 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.2544, allocations: 0 / 443 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2544, allocations: 0 / 443 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.2555, allocations: 0.5967 MB / 443.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2555, allocations: 64 / 443.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002248/0.2557, allocations: 47.97 kB / 443.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001467/0.2559, allocations: 52.77 kB / 443.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.2559, allocations: 4 kB / 443.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/0.2575, allocations: 1.511 MB / 445.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2575, allocations: 3.938 kB / 445.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.2585, allocations: 0.5052 MB / 445.8 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.645e-05/0.2586, allocations: 35.92 kB / 445.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.2587, allocations: 7.984 kB / 445.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.2589, allocations: 27.97 kB / 445.8 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.2591, allocations: 75.86 kB / 445.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.2591, allocations: 8 kB / 445.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001559/0.2593, allocations: 147.6 kB / 446.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2593, allocations: 0 / 446.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004305/0.2597, allocations: 83.92 kB / 446.1 MB, free: 7.555 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.001472/0.2612, allocations: 390.5 kB / 446.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009571/0.2621, allocations: 467.7 kB / 447 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2621, allocations: 0 / 447 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004817/0.2626, allocations: 266.4 kB / 447.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.263, allocations: 52.08 kB / 447.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.2644, allocations: 0.6564 MB / 447.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.2646, allocations: 142.2 kB / 448.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.2647, allocations: 25.95 kB / 448.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.301e-05/0.2647, allocations: 31.42 kB / 448.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2647, allocations: 0 / 448.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of Templates: time 0.01008/0.2748, allocations: 4.784 MB / 452.9 MB, free: 0.8867 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.72526991693303]