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.001919/0.001919, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002447/0.002447, allocations: 209.2 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.546/1.546, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001712/0.001712, allocations: 51.92 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2282, allocations: 53.37 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003701/0.2319, allocations: 2.189 MB / 433.8 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2334, allocations: 0.8257 MB / 434.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.693e-05/0.2335, allocations: 3.938 kB / 434.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.2337, allocations: 51.58 kB / 434.6 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.234, allocations: 111.2 kB / 434.7 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.2342, allocations: 91.77 kB / 434.8 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003561/0.2346, allocations: 295.3 kB / 435.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.2347, allocations: 36.58 kB / 435.2 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002516/0.2349, allocations: 135.5 kB / 435.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.2352, allocations: 127.5 kB / 435.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.129e-05/0.2352, allocations: 23.94 kB / 435.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001602/0.2354, allocations: 83.97 kB / 435.5 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-05/0.2354, allocations: 51.83 kB / 435.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.2356, allocations: 103.5 kB / 435.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004105/0.236, allocations: 317 kB / 436 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.236, allocations: 0 / 436 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.236, allocations: 0 / 436 MB, free: 2.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.236, allocations: 0 / 436 MB, free: 2.293 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.00103/0.237, allocations: 0.5297 MB / 436.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.237, allocations: 8.031 kB / 436.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.2372, allocations: 32.8 kB / 436.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.2376, allocations: 191.8 kB / 436.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.2376, allocations: 16.38 kB / 436.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.2376, allocations: 16.38 kB / 436.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004944/0.2381, allocations: 243.3 kB / 437 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.2381, allocations: 4 kB / 437 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.2382, allocations: 4 kB / 437 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.2382, allocations: 4 kB / 437 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004897/0.2387, allocations: 183.8 kB / 437.2 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000949/0.2396, allocations: 0.5352 MB / 437.7 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005654/0.2402, allocations: 202.3 kB / 437.9 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/0.2404, allocations: 92.8 kB / 438 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.2404, allocations: 4 kB / 438 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000406/0.2408, allocations: 163.2 kB / 438.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.014e-06/0.2408, allocations: 0 / 438.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002571/0.2434, allocations: 0.9389 MB / 439.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.2435, allocations: 55.41 kB / 439.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.2437, allocations: 203.1 kB / 439.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.2437, allocations: 33.7 kB / 439.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.231e-05/0.2438, allocations: 132.5 kB / 439.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.118e-05/0.2439, allocations: 95.2 kB / 439.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.926e-05/0.244, allocations: 57.69 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2441, allocations: 338.8 kB / 440 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.2444, allocations: 121.6 kB / 440.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.2447, allocations: 174.1 kB / 440.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004948/0.2452, allocations: 242 kB / 440.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.2452, allocations: 0 / 440.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008213/0.246, allocations: 415.3 kB / 441 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.2461, allocations: 37.7 kB / 441 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2461, allocations: 3.984 kB / 441 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.2463, allocations: 52.84 kB / 441 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.2465, allocations: 47.91 kB / 441.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.2484, allocations: 1.665 MB / 442.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.2487, allocations: 35.98 kB / 442.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.2487, allocations: 8 kB / 442.8 MB, free: 11.07 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.0001569/0.2489, allocations: 151.6 kB / 442.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.673e-05/0.2489, allocations: 23.86 kB / 443 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.955e-05/0.249, allocations: 30.7 kB / 443 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.249, allocations: 8 kB / 443 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.249, allocations: 0 / 443 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.249, allocations: 3.984 kB / 443 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.2501, allocations: 0.5928 MB / 443.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2501, allocations: 8 kB / 443.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002242/0.2503, allocations: 35.97 kB / 443.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/0.2505, allocations: 60.86 kB / 443.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.2505, allocations: 11.92 kB / 443.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001718/0.2522, allocations: 1.515 MB / 445.2 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2522, allocations: 0 / 445.2 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.2533, allocations: 0.4973 MB / 445.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.885e-05/0.2534, allocations: 39.91 kB / 445.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.8e-05/0.2535, allocations: 8 kB / 445.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.2537, allocations: 32.03 kB / 445.8 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.2539, allocations: 75.8 kB / 445.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.2539, allocations: 11.98 kB / 445.9 MB, free: 7.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001543/0.2541, allocations: 147.6 kB / 446 MB, free: 7.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2541, allocations: 0 / 446 MB, free: 7.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004174/0.2545, allocations: 79.94 kB / 446.1 MB, free: 7.57 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.001468/0.256, allocations: 390.7 kB / 446.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.257, allocations: 463.6 kB / 447 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.257, allocations: 4.125 kB / 447 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004716/0.2574, allocations: 262.4 kB / 447.2 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004309/0.2579, allocations: 47.7 kB / 447.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.2594, allocations: 0.6758 MB / 447.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000179/0.2596, allocations: 138.2 kB / 448.1 MB, free: 5.676 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000114/0.2597, allocations: 25.94 kB / 448.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.228e-05/0.2598, allocations: 19.44 kB / 448.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2598, allocations: 0 / 448.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of Templates: time 0.01093/0.2707, allocations: 4.73 MB / 452.8 MB, free: 0.957 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.63124511577189]