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.0009114/0.0009114, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0009816/0.0009816, allocations: 173.9 kB / 24.92 MB, free: 8.723 MB / 18.57 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 0.9237/0.9237, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] 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 1.903e-06/1.903e-06, allocations: 0 / 273.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.399e-05/2.59e-05, allocations: 6.312 kB / 273.5 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003224/0.00325, allocations: 2.346 MB / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.004489, allocations: 0.8604 MB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.00459, allocations: 0 / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002406/0.004831, allocations: 55.5 kB / 276.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003924/0.005223, allocations: 119.1 kB / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.005417, allocations: 91.75 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003017/0.005718, allocations: 299.3 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.005834, allocations: 46.52 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.006108, allocations: 175.6 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.006303, allocations: 111.7 kB / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.006345, allocations: 24 kB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.006502, allocations: 75.91 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.832e-05/0.00657, allocations: 63.81 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.05e-05/0.006651, allocations: 79.81 kB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003198/0.006971, allocations: 255 kB / 278.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.006974, allocations: 3.984 kB / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.006975, allocations: 0 / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.006978, allocations: 0 / 278.1 MB, free: 12.53 MB / 266.7 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.0006647/0.007643, allocations: 481.1 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.007678, allocations: 12.03 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.007817, allocations: 48.83 kB / 278.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.008054, allocations: 187.8 kB / 278.8 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.008079, allocations: 16.38 kB / 278.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.008114, allocations: 24.3 kB / 278.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.008366, allocations: 171.5 kB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.008381, allocations: 4.188 kB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.008398, allocations: 8.375 kB / 279 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.008408, allocations: 7.938 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.008535, allocations: 67.88 kB / 279.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005898/0.009125, allocations: 415.9 kB / 279.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.009349, allocations: 106.5 kB / 279.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.578e-05/0.009415, allocations: 40.84 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.009433, allocations: 4 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001693/0.009602, allocations: 111.9 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.734e-06/0.009604, allocations: 0 / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.001044/0.01065, allocations: 0.6325 MB / 280.4 MB, free: 10.06 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.01068, allocations: 55.41 kB / 280.4 MB, free: 9.996 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.01082, allocations: 200.5 kB / 280.6 MB, free: 9.785 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.01085, allocations: 33.69 kB / 280.6 MB, free: 9.746 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.413e-05/0.0109, allocations: 116.6 kB / 280.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.118e-05/0.01096, allocations: 99.19 kB / 280.9 MB, free: 9.531 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.841e-05/0.01104, allocations: 61.66 kB / 280.9 MB, free: 9.465 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.576e-05/0.01112, allocations: 338.8 kB / 281.2 MB, free: 9.125 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.864e-05/0.0112, allocations: 65.44 kB / 281.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.599e-05/0.0113, allocations: 97.09 kB / 281.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.01145, allocations: 138.1 kB / 281.5 MB, free: 8.789 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.01146, allocations: 4 kB / 281.5 MB, free: 8.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003045/0.01176, allocations: 255.6 kB / 281.8 MB, free: 8.516 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.01179, allocations: 37.7 kB / 281.8 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.0118, allocations: 3.984 kB / 281.8 MB, free: 8.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001264/0.01192, allocations: 40.83 kB / 281.9 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.01207, allocations: 51.91 kB / 281.9 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.0131, allocations: 1.457 MB / 283.4 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.01324, allocations: 27.97 kB / 283.4 MB, free: 6.805 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.01325, allocations: 8 kB / 283.4 MB, free: 6.797 MB / 266.7 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 9.167e-05/0.01335, allocations: 132.6 kB / 283.5 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.01338, allocations: 31.84 kB / 283.6 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.539e-05/0.01342, allocations: 26.66 kB / 283.6 MB, free: 6.598 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.01342, allocations: 8.031 kB / 283.6 MB, free: 6.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.01342, allocations: 0 / 283.6 MB, free: 6.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.01343, allocations: 3.984 kB / 283.6 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005381/0.01396, allocations: 384 kB / 284 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01397, allocations: 0 / 284 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.01412, allocations: 39.97 kB / 284 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.794e-05/0.01422, allocations: 44.81 kB / 284.1 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.01424, allocations: 8.062 kB / 284.1 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008836/0.01512, allocations: 1.304 MB / 285.4 MB, free: 4.699 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01512, allocations: 3.938 kB / 285.4 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003646/0.01549, allocations: 321.3 kB / 285.7 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.052e-05/0.01555, allocations: 23.84 kB / 285.7 MB, free: 4.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.01558, allocations: 12.03 kB / 285.7 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.01572, allocations: 23.92 kB / 285.8 MB, free: 4.305 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.01584, allocations: 71.86 kB / 285.8 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.01586, allocations: 3.984 kB / 285.8 MB, free: 4.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.876e-05/0.01593, allocations: 65.25 kB / 285.9 MB, free: 4.164 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01593, allocations: 0 / 285.9 MB, free: 4.164 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003317/0.01626, allocations: 75.94 kB / 286 MB, free: 4.09 MB / 266.7 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.001187/0.01745, allocations: 458.1 kB / 286.4 MB, free: 3.836 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004266/0.01787, allocations: 352.3 kB / 286.8 MB, free: 3.457 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.01788, allocations: 4.125 kB / 286.8 MB, free: 3.453 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.01809, allocations: 223.6 kB / 287 MB, free: 3.219 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.01836, allocations: 63.19 kB / 287 MB, free: 3.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009707/0.01934, allocations: 0.4994 MB / 287.5 MB, free: 2.629 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.509e-05/0.01939, allocations: 84.31 kB / 287.6 MB, free: 2.527 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.733e-05/0.01948, allocations: 33.94 kB / 287.7 MB, free: 2.492 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.0196, allocations: 91.34 kB / 287.8 MB, free: 2.402 MB / 266.7 MB Notification: Performance of SimCode: time 6.52e-07/0.0196, allocations: 0 / 287.8 MB, free: 2.402 MB / 266.7 MB Notification: Performance of Templates: time 0.101/0.1206, allocations: 4.854 MB / 292.6 MB, free: 24.3 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6165040927007794]