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.001905/0.001905, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002579/0.002579, allocations: 215.6 kB / 24.48 MB, free: 3.84 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.467/1.467, allocations: 230.6 MB / 258.2 MB, free: 7.824 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.001637/0.001637, allocations: 43.94 kB / 378.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2552, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003987/0.2592, allocations: 2.193 MB / 434.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001606/0.2608, allocations: 0.818 MB / 435.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.2609, allocations: 7.938 kB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002809/0.2612, allocations: 51.58 kB / 435.4 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003107/0.2615, allocations: 119.2 kB / 435.5 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.2618, allocations: 83.83 kB / 435.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000379/0.2622, allocations: 295.4 kB / 435.9 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.2623, allocations: 40.23 kB / 435.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002718/0.2626, allocations: 135.6 kB / 436 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002105/0.2628, allocations: 123.4 kB / 436.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.352e-05/0.2628, allocations: 27.94 kB / 436.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.263, allocations: 79.98 kB / 436.3 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.702e-05/0.2631, allocations: 55.81 kB / 436.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.2632, allocations: 99.56 kB / 436.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004529/0.2637, allocations: 309.8 kB / 436.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2637, allocations: 0 / 436.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2637, allocations: 0 / 436.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.2637, allocations: 0 / 436.7 MB, free: 2.301 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.001096/0.2648, allocations: 0.5297 MB / 437.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.462e-05/0.2648, allocations: 11.97 kB / 437.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.265, allocations: 40.78 kB / 437.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.2654, allocations: 187.8 kB / 437.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.2654, allocations: 12.38 kB / 437.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.775e-05/0.2654, allocations: 20.38 kB / 437.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004942/0.2659, allocations: 239.3 kB / 437.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.266, allocations: 4 kB / 437.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.444e-05/0.266, allocations: 8 kB / 437.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.266, allocations: 4 kB / 437.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/0.2665, allocations: 179.8 kB / 437.9 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009954/0.2675, allocations: 0.5469 MB / 438.5 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006054/0.2681, allocations: 190.4 kB / 438.7 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002399/0.2683, allocations: 92.81 kB / 438.8 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.2684, allocations: 4 kB / 438.8 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004073/0.2688, allocations: 167.2 kB / 438.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.144e-06/0.2688, allocations: 0 / 438.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002511/0.2713, allocations: 0.9428 MB / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.2713, allocations: 59.39 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002334/0.2716, allocations: 203.1 kB / 440.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.2716, allocations: 33.7 kB / 440.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.2717, allocations: 132.5 kB / 440.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.647e-05/0.2718, allocations: 95.22 kB / 440.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.2719, allocations: 57.69 kB / 440.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.2721, allocations: 330.8 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003007/0.2724, allocations: 125.6 kB / 440.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000327/0.2727, allocations: 174.1 kB / 441.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005284/0.2732, allocations: 242 kB / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2732, allocations: 0 / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008729/0.2741, allocations: 415.3 kB / 441.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.675e-05/0.2742, allocations: 33.7 kB / 441.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2742, allocations: 0 / 441.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002115/0.2744, allocations: 64.75 kB / 441.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.2746, allocations: 51.91 kB / 441.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/0.2767, allocations: 1.674 MB / 443.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000279/0.277, allocations: 32 kB / 443.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.277, allocations: 15.98 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.0001741/0.2772, allocations: 141.7 kB / 443.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.66e-05/0.2772, allocations: 27.92 kB / 443.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.037e-05/0.2773, allocations: 30.64 kB / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.2773, allocations: 0 / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2773, allocations: 4 kB / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2773, allocations: 0 / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.2785, allocations: 0.5929 MB / 444.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2785, allocations: 0 / 444.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.2787, allocations: 47.97 kB / 444.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.2789, allocations: 52.81 kB / 444.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.2789, allocations: 8 kB / 444.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.2806, allocations: 1.507 MB / 446 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2806, allocations: 4.031 kB / 446 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.2817, allocations: 0.5012 MB / 446.5 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.2818, allocations: 35.86 kB / 446.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.2818, allocations: 11.94 kB / 446.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.2821, allocations: 36.02 kB / 446.6 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.2823, allocations: 75.95 kB / 446.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.2823, allocations: 7.984 kB / 446.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001591/0.2825, allocations: 151.6 kB / 446.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2825, allocations: 0 / 446.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004386/0.2829, allocations: 75.94 kB / 446.9 MB, free: 7.57 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.001468/0.2844, allocations: 390.5 kB / 447.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009888/0.2853, allocations: 467.6 kB / 447.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2854, allocations: 0 / 447.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004839/0.2858, allocations: 262.5 kB / 448 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.2863, allocations: 50.72 kB / 448 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.2877, allocations: 0.6971 MB / 448.7 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000157/0.2879, allocations: 134.2 kB / 448.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.24e-05/0.2879, allocations: 31.42 kB / 448.9 MB, free: 5.617 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2879, allocations: 4 kB / 448.9 MB, free: 5.613 MB / 350.1 MB Notification: Performance of Templates: time 0.007721/0.2957, allocations: 4.47 MB / 453.3 MB, free: 1.156 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.945831216406077]