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.001381/0.001381, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002177/0.002177, allocations: 206.7 kB / 23.73 MB, free: 4.391 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.494/1.494, allocations: 230.5 MB / 257.4 MB, free: 7.777 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.001988/0.001988, allocations: 67.83 kB / 378.2 MB, free: 2.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2372, allocations: 53.4 MB / 431.6 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003915/0.2411, allocations: 2.196 MB / 433.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.2426, allocations: 0.8219 MB / 434.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.2427, allocations: 7.938 kB / 434.6 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002516/0.243, allocations: 47.58 kB / 434.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002884/0.2433, allocations: 107.2 kB / 434.8 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.2435, allocations: 95.81 kB / 434.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003605/0.2439, allocations: 299.3 kB / 435.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.244, allocations: 36.56 kB / 435.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.2443, allocations: 127.6 kB / 435.3 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.2445, allocations: 135.4 kB / 435.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.07e-05/0.2445, allocations: 20 kB / 435.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.2447, allocations: 79.92 kB / 435.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.904e-05/0.2448, allocations: 59.77 kB / 435.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.2449, allocations: 91.58 kB / 435.7 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.2453, allocations: 325 kB / 436 MB, free: 2.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2453, allocations: 0 / 436 MB, free: 2.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2453, allocations: 0 / 436 MB, free: 2.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2453, allocations: 0 / 436 MB, free: 2.094 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.001088/0.2464, allocations: 0.5258 MB / 436.6 MB, free: 1.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.2464, allocations: 11.98 kB / 436.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.2466, allocations: 36.8 kB / 436.6 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003621/0.247, allocations: 195.5 kB / 436.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.247, allocations: 12.38 kB / 436.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.146e-05/0.247, allocations: 20.38 kB / 436.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004863/0.2475, allocations: 231.3 kB / 437.1 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.2475, allocations: 0 / 437.1 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.2476, allocations: 12 kB / 437.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.2476, allocations: 4 kB / 437.1 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004908/0.2481, allocations: 183.8 kB / 437.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009509/0.249, allocations: 0.5391 MB / 437.8 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005725/0.2496, allocations: 186.4 kB / 438 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002694/0.2499, allocations: 103.8 kB / 438.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.2499, allocations: 4 kB / 438.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003997/0.2503, allocations: 171.8 kB / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.673e-06/0.2503, allocations: 0 / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002456/0.2527, allocations: 0.9299 MB / 439.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.2528, allocations: 55.41 kB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002281/0.253, allocations: 207.1 kB / 439.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.253, allocations: 33.7 kB / 439.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.779e-05/0.2531, allocations: 132.5 kB / 439.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.759e-05/0.2532, allocations: 99.2 kB / 439.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.2533, allocations: 57.69 kB / 439.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2535, allocations: 334.8 kB / 440.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002984/0.2538, allocations: 125.6 kB / 440.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003321/0.2541, allocations: 174 kB / 440.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005269/0.2546, allocations: 242 kB / 440.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2546, allocations: 0 / 440.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00085/0.2555, allocations: 411.3 kB / 441 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.2555, allocations: 33.7 kB / 441 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2555, allocations: 4.062 kB / 441 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002054/0.2557, allocations: 56.83 kB / 441.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.256, allocations: 47.91 kB / 441.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.2579, allocations: 1.665 MB / 442.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.2581, allocations: 39.92 kB / 442.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.2582, allocations: 12 kB / 442.9 MB, free: 10.86 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.0001516/0.2583, allocations: 142.5 kB / 443 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.991e-05/0.2584, allocations: 27.86 kB / 443 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.996e-05/0.2584, allocations: 30.64 kB / 443.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.2584, allocations: 0 / 443.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.2584, allocations: 8.047 kB / 443.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.2584, allocations: 3.984 kB / 443.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.2596, allocations: 0.5928 MB / 443.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.2596, allocations: 0 / 443.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.2598, allocations: 48.03 kB / 443.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001492/0.26, allocations: 52.83 kB / 443.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.26, allocations: 8 kB / 443.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.2616, allocations: 1.511 MB / 445.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2616, allocations: 4.031 kB / 445.3 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.2627, allocations: 0.5091 MB / 445.8 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.2628, allocations: 35.91 kB / 445.8 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.364e-05/0.2629, allocations: 11.94 kB / 445.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002537/0.2631, allocations: 27.97 kB / 445.9 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.2633, allocations: 75.86 kB / 445.9 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.2633, allocations: 7.984 kB / 445.9 MB, free: 7.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001567/0.2635, allocations: 155.6 kB / 446.1 MB, free: 7.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2635, allocations: 0 / 446.1 MB, free: 7.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004307/0.2639, allocations: 75.94 kB / 446.2 MB, free: 7.367 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.001473/0.2654, allocations: 389.4 kB / 446.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009385/0.2663, allocations: 459.4 kB / 447 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2663, allocations: 0 / 447 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004692/0.2668, allocations: 262.4 kB / 447.3 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.2672, allocations: 52.09 kB / 447.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.2686, allocations: 0.6603 MB / 448 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.2687, allocations: 138.2 kB / 448.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.2689, allocations: 33.94 kB / 448.1 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.461e-05/0.2689, allocations: 23.44 kB / 448.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2689, allocations: 0 / 448.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of Templates: time 0.01053/0.2795, allocations: 4.727 MB / 452.9 MB, free: 0.7344 MB / 350.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.5848348923027515]