Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 108.6 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 193.1 kB / 24.47 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 47.92 kB / 371.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2642, allocations: 52.19 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003931/0.2681, allocations: 2.2 MB / 426.1 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.2696, allocations: 0.6973 MB / 426.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.2697, allocations: 7.938 kB / 426.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.2699, allocations: 31.72 kB / 426.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.2701, allocations: 75.41 kB / 426.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004781/0.2706, allocations: 107.8 kB / 427 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004282/0.271, allocations: 275.4 kB / 427.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.2712, allocations: 44.52 kB / 427.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.2714, allocations: 119.6 kB / 427.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.2716, allocations: 131.5 kB / 427.5 MB, free: 11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.733e-05/0.2717, allocations: 24 kB / 427.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001504/0.2718, allocations: 75.89 kB / 427.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.095e-05/0.2719, allocations: 51.83 kB / 427.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.272, allocations: 107.5 kB / 427.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004094/0.2725, allocations: 292.1 kB / 428.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2725, allocations: 0 / 428.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2725, allocations: 0 / 428.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2725, allocations: 0 / 428.1 MB, free: 10.47 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001063/0.2735, allocations: 0.491 MB / 428.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2736, allocations: 12.03 kB / 428.6 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.396e-05/0.2736, allocations: 28.75 kB / 428.6 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.274, allocations: 170.2 kB / 428.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.274, allocations: 16.36 kB / 428.8 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.848e-05/0.2741, allocations: 20.38 kB / 428.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004989/0.2745, allocations: 247.4 kB / 429.1 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.2746, allocations: 7.953 kB / 429.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.2746, allocations: 4 kB / 429.1 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2746, allocations: 4 kB / 429.1 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000489/0.2751, allocations: 195.8 kB / 429.3 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.2763, allocations: 0.636 MB / 429.9 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006278/0.2769, allocations: 198.3 kB / 430.1 MB, free: 8.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.2772, allocations: 88.81 kB / 430.2 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.2772, allocations: 4 kB / 430.2 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003676/0.2775, allocations: 171 kB / 430.3 MB, free: 8.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.2775, allocations: 0 / 430.3 MB, free: 8.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.00247/0.28, allocations: 0.9245 MB / 431.3 MB, free: 7.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.2801, allocations: 55.41 kB / 431.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.2804, allocations: 192 kB / 431.5 MB, free: 6.809 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.521e-05/0.2805, allocations: 33.7 kB / 431.5 MB, free: 6.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.2806, allocations: 136.5 kB / 431.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.2808, allocations: 95.2 kB / 431.8 MB, free: 6.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.2809, allocations: 61.69 kB / 431.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002625/0.2811, allocations: 330.8 kB / 432.2 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.2814, allocations: 112 kB / 432.3 MB, free: 6.027 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003223/0.2817, allocations: 148.3 kB / 432.4 MB, free: 5.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006011/0.2823, allocations: 243.8 kB / 432.6 MB, free: 5.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2823, allocations: 8 kB / 432.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008397/0.2832, allocations: 396.8 kB / 433 MB, free: 5.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.18e-05/0.2832, allocations: 33.14 kB / 433.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.2832, allocations: 15.98 kB / 433.1 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002577/0.2835, allocations: 72.81 kB / 433.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002165/0.2837, allocations: 47.91 kB / 433.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005651/0.2843, allocations: 0.6109 MB / 433.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.2845, allocations: 32.03 kB / 433.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.2846, allocations: 12 kB / 433.9 MB, free: 4.355 MB / 334.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 (32): * Single equations (assignments): 30 * 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.0001681/0.2847, allocations: 145.7 kB / 434 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.063e-05/0.2848, allocations: 23.86 kB / 434 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.755e-05/0.2848, allocations: 25.97 kB / 434.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.2848, allocations: 8.031 kB / 434.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2849, allocations: 0 / 434.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.2849, allocations: 7.984 kB / 434.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.286, allocations: 0.6472 MB / 434.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.286, allocations: 0 / 434.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002112/0.2863, allocations: 43.84 kB / 434.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.2864, allocations: 68.81 kB / 434.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.2865, allocations: 8 kB / 434.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004918/0.287, allocations: 0.5992 MB / 435.4 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.287, allocations: 0 / 435.4 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009999/0.288, allocations: 0.5087 MB / 435.9 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.2881, allocations: 39.88 kB / 436 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.2881, allocations: 7.984 kB / 436 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.2884, allocations: 31.91 kB / 436 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.853e-05/0.2885, allocations: 39.94 kB / 436.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.2885, allocations: 7.984 kB / 436.1 MB, free: 2.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001332/0.2886, allocations: 143.4 kB / 436.2 MB, free: 1.898 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2886, allocations: 0 / 436.2 MB, free: 1.898 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003624/0.289, allocations: 75.92 kB / 436.3 MB, free: 1.824 MB / 334.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 (20): * Single equations (assignments): 17 * 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.0002103/0.2892, allocations: 119.6 kB / 436.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007745/0.29, allocations: 311.1 kB / 436.7 MB, free: 1.379 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.29, allocations: 3.938 kB / 436.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003502/0.2903, allocations: 131.8 kB / 436.8 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.2907, allocations: 50.62 kB / 436.9 MB, free: 1.203 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.2921, allocations: 0.6849 MB / 437.6 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004662/0.2926, allocations: 0.7441 MB / 438.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.249e-05/0.2927, allocations: 23.42 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2927, allocations: 3.938 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of Templates: time 0.006704/0.2994, allocations: 3.825 MB / 442.2 MB, free: 11.87 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.877997521078214]