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.001979/0.001979, allocations: 118.6 kB / 18.5 MB, free: 4.543 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.002063/0.002063, allocations: 202.6 kB / 21.45 MB, free: 1.59 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.467/1.467, allocations: 230.2 MB / 254.5 MB, free: 15.23 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.001958/0.001958, allocations: 63.89 kB / 373.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1059, allocations: 53.31 MB / 427.1 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003896/0.1098, allocations: 2.3 MB / 429.4 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.1113, allocations: 0.8763 MB / 430.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.1115, allocations: 3.938 kB / 430.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003534/0.1118, allocations: 43.64 kB / 430.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000334/0.1122, allocations: 115.2 kB / 430.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.1124, allocations: 83.83 kB / 430.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004034/0.1128, allocations: 291.3 kB / 430.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.113, allocations: 42.08 kB / 430.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002869/0.1133, allocations: 135.5 kB / 431 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.1135, allocations: 139.4 kB / 431.1 MB, free: 472 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.966e-05/0.1136, allocations: 20 kB / 431.2 MB, free: 452 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00017/0.1137, allocations: 87.97 kB / 431.2 MB, free: 364 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-05/0.1138, allocations: 51.83 kB / 431.3 MB, free: 312 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.114, allocations: 119.4 kB / 431.4 MB, free: 192 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2176/0.3316, allocations: 310.9 kB / 431.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3316, allocations: 0 / 431.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3316, allocations: 0 / 431.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.3316, allocations: 1.219 kB / 431.7 MB, free: 8.656 MB / 350.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.001067/0.3327, allocations: 0.5905 MB / 432.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3327, allocations: 10.12 kB / 432.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.3329, allocations: 39.02 kB / 432.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.3332, allocations: 255.9 kB / 432.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.3333, allocations: 16.31 kB / 432.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.482e-05/0.3333, allocations: 19.8 kB / 432.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.3338, allocations: 230.6 kB / 432.9 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.3338, allocations: 8.469 kB / 432.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.452e-05/0.3339, allocations: 7.453 kB / 432.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.3339, allocations: 4.438 kB / 432.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000482/0.3344, allocations: 180.5 kB / 433.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008893/0.3352, allocations: 0.6448 MB / 433.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005588/0.3358, allocations: 186.7 kB / 433.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002219/0.336, allocations: 95.55 kB / 434 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.3361, allocations: 10.03 kB / 434 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000332/0.3364, allocations: 164.5 kB / 434.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.603e-06/0.3364, allocations: 0 / 434.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002325/0.3387, allocations: 1.167 MB / 435.3 MB, free: 6.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.3387, allocations: 57.81 kB / 435.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.3389, allocations: 194.5 kB / 435.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.3389, allocations: 32.02 kB / 435.6 MB, free: 6.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.071e-05/0.339, allocations: 139.4 kB / 435.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.264e-05/0.3391, allocations: 95.2 kB / 435.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.933e-05/0.3392, allocations: 59.27 kB / 435.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.532e-05/0.3392, allocations: 336.1 kB / 436.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002619/0.3395, allocations: 97.78 kB / 436.3 MB, free: 6.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.3398, allocations: 147.2 kB / 436.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004762/0.3402, allocations: 244.6 kB / 436.7 MB, free: 6.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3402, allocations: 3.938 kB / 436.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007523/0.341, allocations: 380.6 kB / 437.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.341, allocations: 32.45 kB / 437.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.341, allocations: 2.562 kB / 437.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002112/0.3412, allocations: 53.98 kB / 437.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.3415, allocations: 55.59 kB / 437.2 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.3429, allocations: 1.801 MB / 439 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.3432, allocations: 42.38 kB / 439.1 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.3432, allocations: 13.81 kB / 439.1 MB, free: 4.402 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.0001207/0.3434, allocations: 141.3 kB / 439.2 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.361e-05/0.3434, allocations: 25.52 kB / 439.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.886e-05/0.3434, allocations: 30.44 kB / 439.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3434, allocations: 3.156 kB / 439.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3435, allocations: 0 / 439.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.3435, allocations: 7.047 kB / 439.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.3445, allocations: 0.687 MB / 440 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3445, allocations: 7.938 kB / 440 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002317/0.3448, allocations: 47.45 kB / 440 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001442/0.3449, allocations: 47.89 kB / 440.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.3449, allocations: 7.516 kB / 440.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.3461, allocations: 1.646 MB / 441.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3461, allocations: 1.094 kB / 441.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009929/0.3471, allocations: 0.5113 MB / 442.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.3472, allocations: 115.2 kB / 442.3 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.3473, allocations: 6.766 kB / 442.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002637/0.3476, allocations: 34.19 kB / 442.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.3478, allocations: 75.95 kB / 442.4 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/0.3478, allocations: 7.734 kB / 442.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001646/0.348, allocations: 144.4 kB / 442.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.348, allocations: 1.594 kB / 442.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005026/0.3485, allocations: 72.97 kB / 442.7 MB, free: 1.996 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.001354/0.3498, allocations: 373.5 kB / 443 MB, free: 1.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009137/0.3507, allocations: 432.5 kB / 443.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3507, allocations: 0 / 443.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004345/0.3512, allocations: 258.3 kB / 443.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.3516, allocations: 48.58 kB / 443.8 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.3528, allocations: 0.6803 MB / 444.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001817/0.353, allocations: 0.7492 MB / 445.2 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.3531, allocations: 24.97 kB / 445.2 MB, free: 264 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.487e-05/0.3532, allocations: 22.31 kB / 445.2 MB, free: 260 kB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3532, allocations: 0 / 445.2 MB, free: 260 kB / 350.1 MB Notification: Performance of Templates: time 0.01093/0.3641, allocations: 4.632 MB / 449.9 MB, free: 15.9 MB / 366.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/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_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: 4.605744465254247]