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.001551/0.001551, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001749/0.001749, allocations: 211.4 kB / 24.48 MB, free: 3.941 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.499/1.499, allocations: 230.6 MB / 258.2 MB, free: 7.773 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.001551/0.001551, allocations: 43.92 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2114, allocations: 53.37 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003763/0.2152, allocations: 2.197 MB / 434.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.2166, allocations: 0.8218 MB / 435.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.2167, allocations: 0 / 435.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002424/0.217, allocations: 55.56 kB / 435.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002874/0.2172, allocations: 111.2 kB / 435.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.2175, allocations: 91.83 kB / 435.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003507/0.2178, allocations: 283.4 kB / 435.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.218, allocations: 43.52 kB / 435.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.2182, allocations: 139.6 kB / 436 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.2184, allocations: 139.4 kB / 436.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.478e-05/0.2185, allocations: 24 kB / 436.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.2186, allocations: 79.97 kB / 436.3 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.876e-05/0.2187, allocations: 51.83 kB / 436.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.2188, allocations: 103.6 kB / 436.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.2192, allocations: 314.4 kB / 436.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.2192, allocations: 4 kB / 436.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2192, allocations: 4 kB / 436.8 MB, free: 2.246 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.2193, allocations: 3.938 kB / 436.8 MB, free: 2.242 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.001072/0.2203, allocations: 0.518 MB / 437.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.2204, allocations: 12.03 kB / 437.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.2205, allocations: 36.78 kB / 437.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.2209, allocations: 187.8 kB / 437.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.2209, allocations: 16.38 kB / 437.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.382e-05/0.221, allocations: 20.36 kB / 437.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005189/0.2215, allocations: 235.3 kB / 437.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.2215, allocations: 7.938 kB / 437.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.453e-05/0.2215, allocations: 4 kB / 437.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.2215, allocations: 4 kB / 437.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005077/0.2221, allocations: 183.9 kB / 438 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009573/0.223, allocations: 0.5391 MB / 438.5 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006007/0.2236, allocations: 193.1 kB / 438.7 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.2239, allocations: 92.81 kB / 438.8 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.2239, allocations: 4 kB / 438.8 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004092/0.2243, allocations: 163.2 kB / 438.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.863e-06/0.2243, allocations: 0 / 438.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002537/0.2268, allocations: 0.9388 MB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.2269, allocations: 55.41 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.2271, allocations: 203.1 kB / 440.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.2272, allocations: 37.7 kB / 440.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.2273, allocations: 140.5 kB / 440.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.347e-05/0.2274, allocations: 95.2 kB / 440.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.2275, allocations: 61.69 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.2276, allocations: 330.8 kB / 440.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002955/0.2279, allocations: 121.6 kB / 440.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003322/0.2283, allocations: 170.1 kB / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000531/0.2288, allocations: 246 kB / 441.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2288, allocations: 0 / 441.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008737/0.2297, allocations: 415.3 kB / 441.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.781e-05/0.2297, allocations: 33.7 kB / 441.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.2297, allocations: 8.062 kB / 441.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002085/0.2299, allocations: 56.81 kB / 441.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.2301, allocations: 47.91 kB / 441.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/0.2321, allocations: 1.676 MB / 443.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.2323, allocations: 27.97 kB / 443.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.2324, allocations: 11.98 kB / 443.6 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.0001612/0.2325, allocations: 141.8 kB / 443.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.759e-05/0.2326, allocations: 31.78 kB / 443.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.852e-05/0.2326, allocations: 30.64 kB / 443.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2326, allocations: 4.062 kB / 443.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.2326, allocations: 4 kB / 443.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2326, allocations: 0 / 443.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.2338, allocations: 0.6006 MB / 444.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2338, allocations: 0 / 444.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002395/0.2341, allocations: 39.97 kB / 444.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/0.2342, allocations: 56.83 kB / 444.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.2342, allocations: 4 kB / 444.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/0.2358, allocations: 1.515 MB / 446 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2358, allocations: 0 / 446 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.2369, allocations: 0.5051 MB / 446.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.237, allocations: 39.92 kB / 446.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/0.2371, allocations: 4 kB / 446.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.2373, allocations: 35.95 kB / 446.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.2375, allocations: 71.86 kB / 446.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.2375, allocations: 19.94 kB / 446.7 MB, free: 7.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001477/0.2377, allocations: 143.6 kB / 446.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2377, allocations: 0 / 446.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004095/0.2381, allocations: 79.94 kB / 446.9 MB, free: 7.52 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.001421/0.2395, allocations: 380.8 kB / 447.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009252/0.2404, allocations: 471.6 kB / 447.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2404, allocations: 0 / 447.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004806/0.2409, allocations: 270.5 kB / 448 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.2414, allocations: 43.89 kB / 448 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.2427, allocations: 0.6743 MB / 448.7 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.2429, allocations: 142.1 kB / 448.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.243, allocations: 21.95 kB / 448.9 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.957e-05/0.2431, allocations: 27.42 kB / 448.9 MB, free: 5.582 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2431, allocations: 0 / 448.9 MB, free: 5.582 MB / 350.1 MB Notification: Performance of Templates: time 0.009735/0.2528, allocations: 4.79 MB / 453.7 MB, free: 0.8477 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 -s gbode -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: 4.557528567995178]