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.001299/0.001299, allocations: 107.6 kB / 21.18 MB, free: 0.6758 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.001415/0.001415, allocations: 206.1 kB / 24.48 MB, free: 3.973 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.443/1.443, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.001537/0.001537, allocations: 43.92 kB / 378.9 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2567, allocations: 53.37 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003807/0.2605, allocations: 2.193 MB / 434.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.262, allocations: 0.8257 MB / 435.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.2621, allocations: 7.938 kB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.2624, allocations: 43.64 kB / 435.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002843/0.2627, allocations: 111.2 kB / 435.5 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002303/0.2629, allocations: 91.77 kB / 435.6 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.2632, allocations: 291.4 kB / 435.9 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.2634, allocations: 40.23 kB / 435.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.2637, allocations: 139.5 kB / 436.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.2639, allocations: 139.4 kB / 436.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.997e-05/0.2639, allocations: 20 kB / 436.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001561/0.2641, allocations: 87.95 kB / 436.3 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.815e-05/0.2642, allocations: 59.72 kB / 436.4 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.2643, allocations: 95.56 kB / 436.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.2647, allocations: 317.8 kB / 436.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2647, allocations: 0 / 436.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2647, allocations: 0 / 436.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.2647, allocations: 0 / 436.8 MB, free: 2.289 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.001082/0.2658, allocations: 0.5219 MB / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.2658, allocations: 12.03 kB / 437.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001882/0.266, allocations: 36.78 kB / 437.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.2665, allocations: 195.8 kB / 437.5 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.2665, allocations: 12.38 kB / 437.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.274e-05/0.2665, allocations: 20.38 kB / 437.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005275/0.2671, allocations: 235.3 kB / 437.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.2671, allocations: 7.984 kB / 437.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.2671, allocations: 12 kB / 437.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.2671, allocations: 4 kB / 437.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000511/0.2676, allocations: 175.8 kB / 438 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009908/0.2686, allocations: 0.5391 MB / 438.5 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005812/0.2692, allocations: 182.5 kB / 438.7 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002522/0.2694, allocations: 96.81 kB / 438.8 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.2695, allocations: 7.938 kB / 438.8 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004068/0.2699, allocations: 163.3 kB / 439 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/0.2699, allocations: 0 / 439 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002543/0.2724, allocations: 0.9388 MB / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.2725, allocations: 63.41 kB / 440 MB, free: 14.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.2727, allocations: 203.1 kB / 440.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.2728, allocations: 33.7 kB / 440.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.2729, allocations: 132.5 kB / 440.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.098e-05/0.273, allocations: 99.2 kB / 440.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.2731, allocations: 61.62 kB / 440.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.2732, allocations: 330.8 kB / 440.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003014/0.2735, allocations: 125.6 kB / 440.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.2739, allocations: 170.1 kB / 441.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005207/0.2744, allocations: 246 kB / 441.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2744, allocations: 0 / 441.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000877/0.2753, allocations: 415.3 kB / 441.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.927e-05/0.2753, allocations: 33.7 kB / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.2753, allocations: 0 / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002145/0.2755, allocations: 56.83 kB / 441.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.2757, allocations: 47.91 kB / 441.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001935/0.2777, allocations: 1.672 MB / 443.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.278, allocations: 32 kB / 443.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/0.278, allocations: 19.92 kB / 443.6 MB, free: 11.05 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.0001639/0.2782, allocations: 141.7 kB / 443.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-05/0.2782, allocations: 23.86 kB / 443.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.239e-05/0.2783, allocations: 34.7 kB / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2783, allocations: 0 / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2783, allocations: 4 kB / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2783, allocations: 0 / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.2795, allocations: 0.589 MB / 444.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2795, allocations: 0 / 444.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002537/0.2797, allocations: 51.91 kB / 444.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001524/0.2799, allocations: 48.83 kB / 444.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.769e-05/0.2799, allocations: 8 kB / 444.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001656/0.2815, allocations: 1.515 MB / 446 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2816, allocations: 4.031 kB / 446 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.2826, allocations: 0.5091 MB / 446.5 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.802e-05/0.2827, allocations: 31.92 kB / 446.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.182e-05/0.2828, allocations: 8 kB / 446.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002681/0.283, allocations: 31.95 kB / 446.6 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.2832, allocations: 79.86 kB / 446.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.2832, allocations: 4 kB / 446.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001522/0.2834, allocations: 151.6 kB / 446.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2834, allocations: 3.938 kB / 446.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004215/0.2838, allocations: 75.94 kB / 446.9 MB, free: 7.566 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.001414/0.2852, allocations: 389.6 kB / 447.3 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000962/0.2862, allocations: 463.7 kB / 447.7 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.2862, allocations: 4 kB / 447.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004726/0.2867, allocations: 266.5 kB / 448 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.2871, allocations: 47.98 kB / 448 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.2885, allocations: 0.7022 MB / 448.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001494/0.2886, allocations: 134.2 kB / 448.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.452e-05/0.2887, allocations: 31.42 kB / 448.9 MB, free: 5.613 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2887, allocations: 3.938 kB / 448.9 MB, free: 5.609 MB / 350.1 MB Notification: Performance of Templates: time 0.007485/0.2962, allocations: 4.46 MB / 453.4 MB, free: 1.16 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/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_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: 7.899692245991901]