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.001514/0.001514, allocations: 105.4 kB / 19.81 MB, free: 2.516 MB / 14.72 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.001729/0.001729, allocations: 215.3 kB / 23 MB, free: 5.609 MB / 14.72 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 1.472/1.472, allocations: 230.2 MB / 256.2 MB, free: 8.543 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001835/0.001835, allocations: 67.88 kB / 376.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2847, allocations: 53.32 MB / 429.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003792/0.2885, allocations: 2.306 MB / 432.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.2899, allocations: 0.8802 MB / 433 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.29, allocations: 11.88 kB / 433 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002357/0.2903, allocations: 43.64 kB / 433 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002528/0.2905, allocations: 107.2 kB / 433.1 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.2908, allocations: 95.75 kB / 433.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003421/0.2911, allocations: 287.4 kB / 433.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.2912, allocations: 44.36 kB / 433.5 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.2915, allocations: 135.5 kB / 433.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.2917, allocations: 135.5 kB / 433.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.231e-05/0.2917, allocations: 24 kB / 433.8 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.2919, allocations: 75.98 kB / 433.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.335e-05/0.2919, allocations: 59.75 kB / 434 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.2921, allocations: 119.4 kB / 434.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004055/0.2925, allocations: 312 kB / 434.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2925, allocations: 4 kB / 434.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2925, allocations: 0 / 434.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2925, allocations: 0 / 434.4 MB, free: 2.906 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.001046/0.2935, allocations: 0.605 MB / 435 MB, free: 2.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.2936, allocations: 8.031 kB / 435 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.2937, allocations: 28.8 kB / 435 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00034/0.2941, allocations: 257.6 kB / 435.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.2941, allocations: 12.38 kB / 435.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.105e-05/0.2941, allocations: 20.38 kB / 435.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000463/0.2946, allocations: 235.3 kB / 435.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.2946, allocations: 0 / 435.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.2946, allocations: 4 kB / 435.6 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.2946, allocations: 12 kB / 435.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004628/0.2951, allocations: 175.8 kB / 435.7 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009746/0.2961, allocations: 0.6564 MB / 436.4 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005441/0.2966, allocations: 194.5 kB / 436.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.2969, allocations: 92.75 kB / 436.7 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.2969, allocations: 7.938 kB / 436.7 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003631/0.2972, allocations: 171.2 kB / 436.8 MB, free: 272 kB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.472e-06/0.2972, allocations: 0 / 436.8 MB, free: 272 kB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.00245/0.2997, allocations: 1.156 MB / 438 MB, free: 15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.2997, allocations: 55.41 kB / 438.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.3, allocations: 199.4 kB / 438.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.3, allocations: 33.7 kB / 438.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3001, allocations: 132.5 kB / 438.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.6e-05/0.3002, allocations: 99.2 kB / 438.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.3003, allocations: 61.69 kB / 438.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3005, allocations: 330.8 kB / 438.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.3008, allocations: 99.94 kB / 439 MB, free: 13.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000316/0.3011, allocations: 148 kB / 439.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005101/0.3016, allocations: 246.5 kB / 439.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3016, allocations: 4 kB / 439.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008083/0.3024, allocations: 377.8 kB / 439.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.3025, allocations: 33.7 kB / 439.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3025, allocations: 0 / 439.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000213/0.3027, allocations: 60.77 kB / 439.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.3029, allocations: 51.97 kB / 439.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.305, allocations: 1.81 MB / 441.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/0.3052, allocations: 27.97 kB / 441.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.638e-05/0.3052, allocations: 12 kB / 441.7 MB, free: 11.02 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.0001603/0.3054, allocations: 150.2 kB / 441.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.844e-05/0.3055, allocations: 23.86 kB / 441.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.883e-05/0.3055, allocations: 26.56 kB / 441.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.413e-06/0.3055, allocations: 7.984 kB / 441.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3055, allocations: 3.938 kB / 441.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3055, allocations: 0 / 441.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.3067, allocations: 0.6869 MB / 442.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3067, allocations: 0 / 442.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.307, allocations: 43.91 kB / 442.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001414/0.3071, allocations: 56.86 kB / 442.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/0.3071, allocations: 8 kB / 442.7 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001698/0.3088, allocations: 1.653 MB / 444.4 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3088, allocations: 0 / 444.4 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.3098, allocations: 0.5015 MB / 444.9 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.31, allocations: 117.1 kB / 445 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.31, allocations: 8 kB / 445 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.3103, allocations: 31.91 kB / 445.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.3104, allocations: 71.89 kB / 445.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.3104, allocations: 7.984 kB / 445.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001544/0.3106, allocations: 143.2 kB / 445.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3106, allocations: 0 / 445.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000396/0.311, allocations: 76 kB / 445.3 MB, free: 7.164 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.001305/0.3123, allocations: 370.2 kB / 445.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000872/0.3132, allocations: 429.8 kB / 446.1 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3132, allocations: 4 kB / 446.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004629/0.3136, allocations: 266.3 kB / 446.4 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004109/0.314, allocations: 56.16 kB / 446.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.3154, allocations: 0.6706 MB / 447.1 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.3158, allocations: 0.7441 MB / 447.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.3159, allocations: 25.94 kB / 447.9 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.376e-05/0.316, allocations: 27.44 kB / 447.9 MB, free: 4.613 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.316, allocations: 0 / 447.9 MB, free: 4.613 MB / 350.1 MB Notification: Performance of Templates: time 0.01018/0.3262, allocations: 4.725 MB / 452.6 MB, free: 15.92 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.560194669291377]