Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001539/0.001539, allocations: 113 kB / 21.18 MB, free: 0.5898 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.001663/0.001663, allocations: 209.7 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.377/1.377, allocations: 230.5 MB / 258.1 MB, free: 8.148 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 71.83 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2442, allocations: 53.31 MB / 432 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00404/0.2482, allocations: 2.313 MB / 434.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.2497, allocations: 0.8802 MB / 435.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.2498, allocations: 4 kB / 435.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002642/0.2501, allocations: 55.56 kB / 435.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002665/0.2503, allocations: 107.2 kB / 435.4 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.2506, allocations: 87.81 kB / 435.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003573/0.2509, allocations: 291.4 kB / 435.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.2511, allocations: 36.39 kB / 435.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000258/0.2513, allocations: 143.5 kB / 435.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.2516, allocations: 135.5 kB / 436.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.2516, allocations: 20 kB / 436.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.2518, allocations: 87.91 kB / 436.2 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.669e-05/0.2518, allocations: 51.83 kB / 436.2 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.252, allocations: 119.4 kB / 436.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000437/0.2524, allocations: 312.7 kB / 436.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2524, allocations: 0 / 436.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2524, allocations: 4 kB / 436.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.866e-06/0.2524, allocations: 4 kB / 436.7 MB, free: 2.75 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.001149/0.2536, allocations: 0.5895 MB / 437.2 MB, free: 2.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2536, allocations: 11.97 kB / 437.3 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.2538, allocations: 40.73 kB / 437.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.2542, allocations: 253.7 kB / 437.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.2542, allocations: 12.38 kB / 437.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.2543, allocations: 20.38 kB / 437.6 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004775/0.2547, allocations: 231.3 kB / 437.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.2548, allocations: 3.984 kB / 437.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.2548, allocations: 11.94 kB / 437.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.2548, allocations: 4 kB / 437.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004829/0.2553, allocations: 183.8 kB / 438 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.2563, allocations: 0.6487 MB / 438.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005882/0.2569, allocations: 198.5 kB / 438.8 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002408/0.2571, allocations: 100.7 kB / 438.9 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.2572, allocations: 0 / 438.9 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003774/0.2575, allocations: 171.2 kB / 439.1 MB, free: 112 kB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.332e-06/0.2575, allocations: 0 / 439.1 MB, free: 112 kB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002613/0.2601, allocations: 1.163 MB / 440.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.2602, allocations: 59.39 kB / 440.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.2604, allocations: 198.5 kB / 440.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.608e-05/0.2605, allocations: 37.7 kB / 440.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.2606, allocations: 132.5 kB / 440.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.093e-05/0.2606, allocations: 95.22 kB / 440.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.816e-05/0.2607, allocations: 57.69 kB / 440.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.2609, allocations: 326.8 kB / 441.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.2612, allocations: 103.9 kB / 441.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.2615, allocations: 148.3 kB / 441.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005185/0.262, allocations: 238 kB / 441.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.262, allocations: 0 / 441.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008306/0.2628, allocations: 377.8 kB / 442 MB, free: 13.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.152e-05/0.2629, allocations: 33.69 kB / 442 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.2629, allocations: 4 kB / 442 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000208/0.2631, allocations: 60.75 kB / 442.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.2633, allocations: 55.97 kB / 442.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.2653, allocations: 1.801 MB / 444 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.2656, allocations: 27.97 kB / 444 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.2656, allocations: 12 kB / 444 MB, free: 10.87 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.0001656/0.2658, allocations: 153.8 kB / 444.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.2658, allocations: 19.86 kB / 444.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.921e-05/0.2659, allocations: 30.5 kB / 444.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2659, allocations: 4 kB / 444.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2659, allocations: 3.938 kB / 444.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2659, allocations: 3.984 kB / 444.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.2671, allocations: 0.687 MB / 444.9 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.2671, allocations: 4 kB / 444.9 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.2673, allocations: 39.91 kB / 444.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001458/0.2674, allocations: 60.81 kB / 445 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.2675, allocations: 4 kB / 445 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001711/0.2692, allocations: 1.654 MB / 446.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2692, allocations: 0 / 446.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.2702, allocations: 0.4976 MB / 447.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.2704, allocations: 121 kB / 447.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/0.2704, allocations: 11.98 kB / 447.3 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.2706, allocations: 27.91 kB / 447.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.2708, allocations: 71.89 kB / 447.4 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.2708, allocations: 4 kB / 447.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001559/0.271, allocations: 151.6 kB / 447.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.271, allocations: 3.938 kB / 447.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004037/0.2714, allocations: 79.98 kB / 447.6 MB, free: 7 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.001278/0.2727, allocations: 379.8 kB / 448 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009444/0.2736, allocations: 429.8 kB / 448.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2736, allocations: 3.938 kB / 448.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000455/0.2741, allocations: 254.4 kB / 448.7 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.2745, allocations: 48.09 kB / 448.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.2759, allocations: 0.7036 MB / 449.4 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.2763, allocations: 0.7518 MB / 450.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.912e-05/0.2764, allocations: 31.42 kB / 450.2 MB, free: 4.457 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2764, allocations: 0 / 450.2 MB, free: 4.457 MB / 350.1 MB Notification: Performance of Templates: time 0.007437/0.2838, allocations: 4.377 MB / 454.6 MB, free: 100 kB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.3766293143853545]