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.001772/0.001772, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.002111/0.002111, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.435/1.435, allocations: 230.6 MB / 258.3 MB, free: 7.965 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.001547/0.001547, allocations: 51.92 kB / 379 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2511, allocations: 53.36 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003888/0.255, allocations: 2.306 MB / 434.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.2566, allocations: 0.8801 MB / 435.6 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.2567, allocations: 8 kB / 435.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000256/0.257, allocations: 55.56 kB / 435.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.2572, allocations: 107.2 kB / 435.7 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.2575, allocations: 87.83 kB / 435.8 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003786/0.2578, allocations: 287.4 kB / 436.1 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.258, allocations: 44.56 kB / 436.1 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.2582, allocations: 147.5 kB / 436.3 MB, free: 3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.2585, allocations: 131.5 kB / 436.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.972e-05/0.2585, allocations: 24 kB / 436.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.2586, allocations: 75.98 kB / 436.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.165e-05/0.2587, allocations: 55.81 kB / 436.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.2589, allocations: 119.4 kB / 436.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004367/0.2593, allocations: 316 kB / 437 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2593, allocations: 0 / 437 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2593, allocations: 0 / 437 MB, free: 2.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.2593, allocations: 3.984 kB / 437 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.001086/0.2604, allocations: 0.5259 MB / 437.5 MB, free: 1.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.2604, allocations: 8.031 kB / 437.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.2606, allocations: 36.75 kB / 437.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003917/0.261, allocations: 187.8 kB / 437.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.261, allocations: 20.38 kB / 437.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.12e-05/0.2611, allocations: 16.38 kB / 437.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000486/0.2616, allocations: 239.2 kB / 438 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.2616, allocations: 0 / 438 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.2616, allocations: 4 kB / 438 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.2616, allocations: 8 kB / 438 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004963/0.2621, allocations: 183.9 kB / 438.2 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.2632, allocations: 0.6203 MB / 438.8 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005763/0.2638, allocations: 194.5 kB / 439 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.264, allocations: 102.4 kB / 439.1 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.264, allocations: 4 kB / 439.1 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004009/0.2644, allocations: 171.2 kB / 439.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.583e-06/0.2644, allocations: 0 / 439.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002405/0.2668, allocations: 0.9273 MB / 440.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.735e-05/0.2669, allocations: 55.41 kB / 440.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.2672, allocations: 207.1 kB / 440.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/0.2672, allocations: 33.7 kB / 440.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.2674, allocations: 132.5 kB / 440.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.642e-05/0.2674, allocations: 103.1 kB / 440.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.2675, allocations: 61.7 kB / 440.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2677, allocations: 330.8 kB / 441.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.268, allocations: 99.88 kB / 441.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.2683, allocations: 140.4 kB / 441.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005128/0.2688, allocations: 246 kB / 441.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2688, allocations: 0 / 441.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008253/0.2696, allocations: 385.7 kB / 442 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.09e-05/0.2696, allocations: 33.7 kB / 442 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/0.2697, allocations: 0 / 442 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.2699, allocations: 60.77 kB / 442.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.2701, allocations: 47.91 kB / 442.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/0.2722, allocations: 1.706 MB / 443.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003079/0.2725, allocations: 31.95 kB / 443.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.2725, allocations: 15.98 kB / 443.9 MB, free: 11.01 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.0001705/0.2727, allocations: 130.3 kB / 444 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.68e-05/0.2727, allocations: 31.86 kB / 444 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.855e-05/0.2728, allocations: 34.64 kB / 444.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.2728, allocations: 4 kB / 444.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2728, allocations: 3.938 kB / 444.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2728, allocations: 0 / 444.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.274, allocations: 0.647 MB / 444.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.274, allocations: 4.062 kB / 444.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.2742, allocations: 47.97 kB / 444.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.2744, allocations: 52.92 kB / 444.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.2744, allocations: 8 kB / 444.8 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001905/0.2763, allocations: 1.553 MB / 446.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2763, allocations: 0 / 446.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.2773, allocations: 0.4974 MB / 446.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.364e-05/0.2774, allocations: 39.88 kB / 446.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.2775, allocations: 7.984 kB / 446.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.2777, allocations: 35.91 kB / 447 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.2779, allocations: 75.86 kB / 447 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.2779, allocations: 4 kB / 447 MB, free: 7.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001982/0.2781, allocations: 151.6 kB / 447.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2781, allocations: 0 / 447.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004231/0.2785, allocations: 79.92 kB / 447.3 MB, free: 7.414 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.001373/0.2799, allocations: 385.5 kB / 447.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009349/0.2808, allocations: 430.7 kB / 448.1 MB, free: 6.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2808, allocations: 3.938 kB / 448.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.2813, allocations: 258.4 kB / 448.3 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004508/0.2817, allocations: 39.97 kB / 448.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.2832, allocations: 0.6971 MB / 449.1 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000414/0.2836, allocations: 0.7519 MB / 449.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.842e-05/0.2837, allocations: 23.42 kB / 449.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2837, allocations: 0 / 449.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of Templates: time 0.007841/0.2915, allocations: 4.396 MB / 454.2 MB, free: 0.4961 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.7256764529738575]