Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 88.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004517/0.004517, allocations: 165.1 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9956/0.9956, allocations: 177 MB / 205.2 MB, free: 5.07 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.219e-05/2.384e-05, allocations: 9.062 kB / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002979/0.003002, allocations: 2.336 MB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.004121, allocations: 0.8604 MB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.697e-05/0.004218, allocations: 7.938 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001854/0.004403, allocations: 47.58 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.004606, allocations: 123.1 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001598/0.004765, allocations: 87.75 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002638/0.005029, allocations: 299.3 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.005131, allocations: 46.52 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002689/0.0054, allocations: 183.6 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.005572, allocations: 107.7 kB / 277.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/0.005606, allocations: 24 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.005733, allocations: 75.91 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.347e-05/0.005796, allocations: 55.81 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.417e-05/0.005871, allocations: 87.81 kB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003142/0.006185, allocations: 247 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.006188, allocations: 4 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.006189, allocations: 0 / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.006195, allocations: 0 / 278 MB, free: 12.45 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.0006637/0.006858, allocations: 493.1 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.006896, allocations: 19.92 kB / 278.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.007033, allocations: 40.91 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.007325, allocations: 187.5 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.007351, allocations: 20.36 kB / 278.7 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.007383, allocations: 20.31 kB / 278.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.007596, allocations: 175.5 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.007607, allocations: 192 / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.007621, allocations: 8.375 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.007628, allocations: 7.938 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.447e-05/0.007722, allocations: 59.95 kB / 279 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000457/0.008179, allocations: 431.8 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.00834, allocations: 102.5 kB / 279.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.644e-05/0.008387, allocations: 36.84 kB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.0084, allocations: 4 kB / 279.6 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001325/0.008533, allocations: 119.2 kB / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.382e-06/0.008534, allocations: 0 / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008109/0.009345, allocations: 0.6261 MB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.009373, allocations: 55.41 kB / 280.3 MB, free: 9.902 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.00949, allocations: 196.5 kB / 280.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.009508, allocations: 33.7 kB / 280.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.683e-05/0.009555, allocations: 116.5 kB / 280.7 MB, free: 9.539 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.036e-05/0.009605, allocations: 103.2 kB / 280.8 MB, free: 9.438 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.214e-05/0.009667, allocations: 61.67 kB / 280.8 MB, free: 9.371 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.104e-05/0.009748, allocations: 334.8 kB / 281.2 MB, free: 9.035 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.171e-05/0.00981, allocations: 65.42 kB / 281.2 MB, free: 8.965 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.571e-05/0.009886, allocations: 101.1 kB / 281.3 MB, free: 8.848 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.01, allocations: 138.1 kB / 281.5 MB, free: 8.695 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.01001, allocations: 0 / 281.5 MB, free: 8.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000242/0.01025, allocations: 255.5 kB / 281.7 MB, free: 8.426 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.01027, allocations: 41.77 kB / 281.8 MB, free: 8.379 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.01027, allocations: 0 / 281.8 MB, free: 8.379 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.55e-05/0.01037, allocations: 36.83 kB / 281.8 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.01048, allocations: 55.91 kB / 281.9 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008451/0.01132, allocations: 1.469 MB / 283.3 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.987e-05/0.01142, allocations: 27.97 kB / 283.3 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.01143, allocations: 8 kB / 283.4 MB, free: 6.695 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 7.441e-05/0.01151, allocations: 128.6 kB / 283.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.364e-05/0.01153, allocations: 23.92 kB / 283.5 MB, free: 6.535 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.706e-05/0.01156, allocations: 30.64 kB / 283.5 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.01156, allocations: 4 kB / 283.5 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-06/0.01156, allocations: 4.031 kB / 283.5 MB, free: 6.496 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.01157, allocations: 3.984 kB / 283.5 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003742/0.01194, allocations: 379.9 kB / 283.9 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.01194, allocations: 0 / 283.9 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.01206, allocations: 39.97 kB / 284 MB, free: 6.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.836e-05/0.01212, allocations: 36.83 kB / 284 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.01214, allocations: 11.98 kB / 284 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006494/0.01279, allocations: 1.323 MB / 285.3 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01279, allocations: 0 / 285.3 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.01306, allocations: 321.8 kB / 285.6 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.0131, allocations: 27.84 kB / 285.7 MB, free: 4.238 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.01312, allocations: 7.938 kB / 285.7 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.369e-05/0.01322, allocations: 27.95 kB / 285.7 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.453e-05/0.01331, allocations: 71.86 kB / 285.8 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.01332, allocations: 7.984 kB / 285.8 MB, free: 4.125 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.618e-05/0.01337, allocations: 53.52 kB / 285.8 MB, free: 4.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01337, allocations: 0 / 285.8 MB, free: 4.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002167/0.01358, allocations: 75.94 kB / 285.9 MB, free: 3.996 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.0008637/0.01445, allocations: 441.9 kB / 286.3 MB, free: 3.719 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003114/0.01476, allocations: 357.2 kB / 286.7 MB, free: 3.336 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.01476, allocations: 0 / 286.7 MB, free: 3.336 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.01495, allocations: 227.2 kB / 286.9 MB, free: 3.098 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.01514, allocations: 63.58 kB / 287 MB, free: 3.039 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007496/0.01589, allocations: 0.499 MB / 287.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001111/0.016, allocations: 88.31 kB / 287.6 MB, free: 2.402 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.065e-05/0.01607, allocations: 29.94 kB / 287.6 MB, free: 2.371 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.01618, allocations: 95.34 kB / 287.7 MB, free: 2.277 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01618, allocations: 0 / 287.7 MB, free: 2.277 MB / 266.7 MB Notification: Performance of Templates: time 0.09662/0.1128, allocations: 4.839 MB / 292.5 MB, free: 24.27 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.7498163199052215]